Click or drag to resize

ImageFileTransform Method

This method transforms one or more pages of the image file.

Namespace:  Kofax.OmniPageCSDK.IproPlus
Assembly:  Kofax.OmniPageCSDK.IproPlus (in Kofax.OmniPageCSDK.IproPlus.dll) Version: 1.0.0.0
Syntax
public void Transform(
	int BitsPerPixel,
	ref IPROSIZE Size,
	[OptionalAttribute] int Page
)

Parameters

BitsPerPixel
Type: SystemInt32
Size
Type: Kofax.OmniPageCSDK.IproPlusIPROSIZE
Page (Optional)
Type: SystemInt32
Remarks

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.

See Also