Image Object (IImage Interface)

This object represents a single "image plane" (black-and-white, 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
ImageColorType ImageColorTypeEnum, read-only

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

Note: 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.

ImageDocument ImageDocument, read-only This property refers to the parent ImageDocument object of the current image plane. For an independent Image object, this property returns NULL.
Height Integer, read-only Stores the height of the current image plane in pixels. The height of the black-and-white image plane of an image is equal to the height of the color image plane of the image.
Resolution Integer, read-only Stores the resolution of the current image plane in pixels per inch. The resolution of the black-and-white image plane of an image is equal to the resolution of the color image plane of the image.
Width Integer, read-only Stores the width of the current image plane in pixels. The width of the black-and-white image plane of an image is equal to the width of the color image plane of the image.
XResolution Integer, read-only Stores the horizontal resolution of the current image plane in pixels per inch. The resolution of the black-and-white image plane of an image is equal to the resolution of the color image plane of the image.
YResolution Integer, read-only Stores the vertical resolution of the current image plane in pixels per inch. The resolution of the black-and-white image plane of an image is equal to the resolution of the color image plane of the image.

Methods

Name Description
EstimateBitmapSize Estimates the size of the bitmap that will be returned by the GetPicture method.
GetPicture 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

Output parameter

This object is the output parameter of the following methods:

Input parameter

This object is the input parameter of the following methods:

See also

ImageDocument

Working with Properties

8/15/2023 1:19:30 PM

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.