Click or drag to resize

ImageFilesCreateImageFromPage Method

This method creates an ImageFile object from an existing page stored in another ImageFile object and adds it to the collection.

Namespace:  Kofax.OmniPageCSDK.IproPlus
Assembly:  Kofax.OmniPageCSDK.IproPlus (in Kofax.OmniPageCSDK.IproPlus.dll) Version: 1.0.0.0
Syntax
public void CreateImageFromPage(
	string FileName,
	IMF_FORMAT Format,
	ImageFile Image,
	[OptionalAttribute] int Page,
	out ImageFile NewImage
)

Parameters

FileName
Type: SystemString
Format
Type: Kofax.OmniPageCSDK.IproPlusIMF_FORMAT
Image
Type: Kofax.OmniPageCSDK.IproPlusImageFile
Page (Optional)
Type: SystemInt32
NewImage
Type: Kofax.OmniPageCSDK.IproPlusImageFile
Remarks

This method also returns a reference to the ImageFile object created. The Format parameter specifies the image type as described at the Format property description of the ImageFile object. If a file with the specified FileName already exists, it will be overwritten. The page is an optional number - defaulting to 0 - which defines which page of the source Image is copied.

See Also