ImageFile.Transform Method |
Namespace: Kofax.OmniPageCSDK.IproPlus
public void Transform( int BitsPerPixel, ref IPROSIZE Size, [OptionalAttribute] int Page )
The transformation can distort the images by changing their dimensions, i.e. the image can be stretched or squeezed using this method. The Transform method also might perform a color mode transformation. The Size parameters define the new dimensions of the image. The BitsPerPixel parameter defines the color mode of the transformed image. The accepted values for the BitsPerPixel parameter are documented in the description of the BitsPerPixel property of the ImageInfo object. If the value of any of the Size parameters is NULL (or Nothing), or the BitsPerPixel parameters is negative, that property remains unchanged. If the optional Page parameter is unspecified or is -1, all pages will be processed. Otherwise only the one specified by the Page index will be processed.
This method can only be used with multi-page image TIFF files. A further requirement is that the pages in the multi-page TIFF file must be stored in one-strip format and the StripBytesCount TIFF tag must exist in the page header. TIFF image files created by the Capture SDK fulfill this requirement.