コミュニティ

How to get the image orientation? (FREngine11)

Hi,

I am currently using orientation auto detection, but we need information about the image orientation. I have tried to get the text orientation, but it is RT_NoRotation in every cases. Am I looking for this information right place or should I check it somewhere else?

Thanks and Regards, Franciska

この記事は役に立ちましたか?

0人中0人がこの記事が役に立ったと言っています

コメント

4件のコメント

  • Avatar
    Permanently deleted user

    Did you set the following parameter:

    PagePreprocessingParams::CorrectOrientation into TRUE value ?

    0
  • Avatar
    Permanently deleted user

    Yap and the auto rotation function is working, but if I request the text orientation enum, I always get a same. BTW, I am using Java lib.

    0
  • Avatar
    Permanently deleted user

    Sorry, for misunderstanding. I've just checked the ImageDocument::ImageRotation description in the Developer's Help.

    The ImageDocument::ImageRotation property shows the changes in orientation only if you make such changes after opening or after SaveModified method. Example: if you call ImageDocument::Transform( RT Clockwise, ... ) then you will get ImageDocument::ImageRotation = RT_Clockwise value. So, ImageDocument::ImageRotation is not about source image rotation. It is about image modification which you implement with ImageDocument after opening.

    In order to get the current image orientation you should call FRPage::DetectOrientation method and look in the TextOrientation::RotationType property. For more details, find FRPage::DetectOrientation method in Developer's Help.

    Hope, it will help!

    1
  • Avatar
    Permanently deleted user

    Thanks finally it is working :)

    Just one more comment others, who may be in a same situation as me: use the DetectOrientation method before the preprocessing. If I check the page orientation after processing it is always RT_NoRotation.

    0

サインインしてコメントを残してください。