Image Object (IImage Interface)

This object represents a single "image plane" (black-and-white, gray, color or preview) of an open image. It gives a user access to properties of this "image plane," such as its geometrical parameters and resolution. It allows you to get a bitmap handle corresponding to this image.

Properties

Name Type Description
Application Engine, read-only Returns the Engine object.
Height int, read-only Stores the height of the current image plane in pixels. The heights of the black-and-white, gray, and color image planes of an image are equal.
ImageColorType ImageColorTypeEnum, read-only

Specifies the color type for the current image plane (black-and-white, gray, color).

Note: By agreement on the ABBYY FineReader Engine API, if the ImageDocument object represents black-and-white image, an image plane received from IImageDocument::ColorImage property will actually be of black-and-white color type. This property provides information about actual color type of the current image plane.

Width int, read-only Stores the width of the current image plane in pixels. The widths of the black-and-white, gray, and color image planes of an image are equal.
XResolution int, read-only Stores the horizontal resolution of the current image plane in pixels per inch. The resolutions of the black-and-white, gray, and color image planes of an image are equal.
YResolution int, read-only Stores the vertical resolution of the current image plane in pixels per inch. The resolution of the black-and-white, gray, and color image planes of an image are equal.

Methods

Name Description
EstimateBitmapSize Estimates the size of the bitmap that will be returned by the GetBitmap method.
GetBitmap Returns a handle of bitmap that corresponds to the current image plane.
WriteToFile Writes the image of the current image plane into an image file.

Related objects

Object Diagram

Input parameter

This object is the input parameter of the IMultipageImageWriter::AddPage method.

Samples

The object is used in the demo tools: Business Card Recognition, Camera OCR, Engine Predefined Processing Profiles, Image Preprocessing; code samples: CommandLineInterface.

See also

ImageDocument

Working with Images

Working with Properties

17.09.2024 15:14:40

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.