Chinese Simplified (简体中文)

TransformationMade Method of the IImageDocumentEvents Interface

This method is implemented on the client-side. It is called by ABBYY FineReader Engine when some transformation was made upon image either explicitly by call of the IImageDocument::Transform method, or internally by ABBYY FineReader Engine. The latter situation may occur when an image with wrong orientation is analyzed and the IPagePreprocessingParams::CorrectOrientation property is TRUE. Implementation of this method may reload the image to show the changes to the user, as it is done in ABBYY FineReader. Reloading of the image is necessary, if, say, the client application receives events from the FRDocument object, and fills out recognized parts of the image with color.

Syntax

HRESULT TransformationMade(
  RotationTypeEnum Rotation,
  VARIANT_BOOL     WasMirrored,
  VARIANT_BOOL     WasInverted
);
    

Parameters

Rotation
[in] This variable of type RotationTypeEnum specifies what kind of rotation was performed upon the image.
WasMirrored
[in] This Boolean variable specifies if the image was inverted.
WasInverted
[in]  This Boolean variable specifies whether image colors were inverted.

Return values

The return value of this method is ignored.

Remarks

  • The client implementation of this method must assure that all exceptions thrown inside the method are caught and handled and no exceptions are propagated outside the method. Propagation of an exception outside the method may lead to unpredictable results (such as program termination).
  • If the image was transformed, its pixel dimensions may change.

See also

ImageDocument

IImageDocumentEvents

03.07.2024 8:50:25

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.