ApplyTransformationParameters method (ILEADRasterProcess)
short ApplyTransformationParameters (ILEADRaster *pRaster, short iXTranslation, short iYTranslation, long lAngle, long lXScale, long lYScale, long lFlags); | |
Overview |
Refer to Detecting Registration Marks |
Remarks
(Document/Medical only) Corrects the image by removing the translation, rotation, and scaling deformations that have been applied on the image.
This method corrects the image by removing the translation, rotation, and scaling deformations that have been applied to the image. These transformations make this bitmap match a reference bitmap.
This method is designed to work with the GetTransformationParameters method.
You can get the translation, rotation, and scaling information by calling the GetTransformationParameters method, which will update the XTranslation, YTranslation, TransformationAngle, XScale and YScale properties. The values in these properties must be passed as they are to the ApplyTransformationParameters method.
You must call the GetTransformationParameters method before using the XTranslation, YTranslation, TransformationAngle, XScale and YScale properties
The shift operation is performed first, followed by the rotation and resize operations.
If you simply want to automatically straighten a bitmap, use the Deskew method.
This method supports 12 and 16-bit grayscale and 48 and 64-bit color images. Support for 12 and 16-bit grayscale and 48 and 64-bit color images is available only in the Document/Medical toolkits.
This method does not support signed data images. It returns the error code ERROR_SIGNED_DATA_NOT_SUPPORTED if a signed data image is passed to this method.
See Also