Click or drag to resize

ImageFile Class

The ImageFile object represents an image file in the file system.
Inheritance Hierarchy

Namespace:  Kofax.OmniPageCSDK.IproPlus
Assembly:  Kofax.OmniPageCSDK.IproPlus (in Kofax.OmniPageCSDK.IproPlus.dll) Version: 1.0.0.0
Syntax
public class ImageFile : IproPlusClass, IDisposable

The ImageFile type exposes the following members.

Properties
  NameDescription
Public propertyAlwaysOpen
Use this property to get or set whether the image file is kept open or not as long as the related ImageFile exists.
Public propertyFileName
This property returns path of the image file.
Public propertyName
Use this property to get or set a name for the image file.
Public propertyPageCount
This property returns the number of pages stored in the associated image file.
Public propertyUniqueID
This property returns the unique ID of the object.
Top
Methods
  NameDescription
Public methodAppendPage
This method appends one or more pages to the image file from the image file specified by the SrcImage parameter.
Public methodClear
This method clears the specified area of one or all pages in the image file.
Public methodConvert2BW
This method can be used to convert one or more pages of the image file to black-and-white (bi-tonal, one-bit color depth).
Public methodCreateMemoryBitmap
This method creates a MemoryBitmap object from one of the pages stored in the related ImageFile object.
Public methodCreateMemoryBitmapArea
This method creates a MemoryBitmap object from a defined area in one of the pages specified by the Page parameter stored in the related ImageFile object.
Public methodCreatePage
This method creates an empty page based on the information specified by the Info parameter.
Public methodCreatePageFromBitmap
This method creates an empty page using the memory bitmap specified by the Bitmap parameter.
Public methodDeletePage
This method deletes the page specified by the Page parameter from the image file.
Public methodDeskew
This method de-skews a page by an amount given by the Slope parameter.
Public methodDeskew3D
This method performs 3-dimensional de-skew on a page, which means it is used to correct the skew and perspective distortion that can occur when an image is taken by digital camera.
Public methodDespeckle
This method performs adaptive noise removal on a B/W page.
Public methodDetectSkew
This method attempts to detect the orientation and the slope of a page.
Public methodDispose
Releases all resources used by the ImageFile
Public methodEquals (Overrides ObjectEquals(Object).)
Public methodFormat
This property returns the format of a page.
Public methodGetEngine
Returns the Engine object.
Public methodGetHashCode (Overrides ObjectGetHashCode.)
Public methodGetPalette
This property is used to get or set the palette of an 8-bit page in the image file object.
Public methodInfo
This property creates and returns an ImageInfo object for the requested page of the image file.
Public methodInsertPage
This method inserts one or more pages into the image file from the image file specified by the SrcImage parameter at the position specified by the Page parameter.
Public methodInvert
This method inverts the specified area of one or all pages in the image.
Public methodIsBlank
This method returns True if the page identified with the optional Page index parameter is a blank image.
Public methodPack
When this method is called the data from any pages deleted using ImageFile methods such as DeletePage are physically removed from the image file.
Public methodPaletted
This method returns True if the requested page is a paletted, color one.
Public methodRemoveLines
This method removes the vertical and horizontal lines from the specified part of a BW page and returns a RemovedLines collection containing the removed lines.
Public methodRotate
This method rotates one or more pages of the image file according to the Rotation parameter.
Public methodSaveArea
This method saves a part of the page image to a new file using an image format specified by the Format parameter.
Public methodSaveAs
This method saves the image to a new file using the specified format.
Public methodSetPalette
This method sets the palette of an image's page.
Public methodTransform
This method transforms one or more pages of the image file.
Public methodTransformByMatrix
This method performs a geometric transformation on a page of the image file using the passed transformation matrix.
Public methodTransformByPoints
This method performs a geometric transformation on a page.
Public methodTransformPalette
This method transforms one or more pages of the image file.
Public methodUpdatePage
This method updates a single page specified by the Page index parameter with a new image at the index SrcPage, stored in the image file defined by the SrcImage parameter.
Public methodUpdatePageFromBitmap
This method replaces a page in the image file with the content specified by the Bitmap parameter.
Top
Remarks

Use this object to get information on, manipulate or convert image files using a wide set of image manipulation methods. Most image-processing methods are available only for particular multi-page tiff images as documented in the descriptions for the methods concerned. To process other images using these methods, save them in the multi-page TIFF format first, perform the operations and convert them back to the original format.

The supported image resolution is in the range of 75-2400 dpi. When accessing bitmap pixel data, note that every stored image is stored in bottom-up line order and the pixel order is BGR.

See Also