Click or drag to resize

ImageFileClear Method

This method clears the specified area of one or all pages in the image file.

Namespace:  Kofax.OmniPageCSDK.IproPlus
Assembly:  Kofax.OmniPageCSDK.IproPlus (in Kofax.OmniPageCSDK.IproPlus.dll) Version: 1.0.0.0
Syntax
public void Clear(
	ref IPRORECT Rect,
	[OptionalAttribute] int Page
)

Parameters

Rect
Type: Kofax.OmniPageCSDK.IproPlusIPRORECT
Page (Optional)
Type: SystemInt32
Remarks

Clear means that every bit in the area will be set to zero. This means white for binary images and black for color and gray images. For palette images the resulting color depends on the palette and the color corresponding to the 0 index. If the Page parameter is unspecified or -1 all pages will be processed. Otherwise only the one specified by the Page index will be processed. To process the whole image area, pass NULL (or Nothing) for the Rect parameter.

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