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:
- Binarize, BitmapToImage, ConvertToGray, CorrectImageGeometry, CropImage, EqualizeBrightness, FillRegionWithColor, FilterColor, InvertRegion, MirrorImage, PreprocessCameraImage, RemoveGarbage, RemoveMotionBlur, RotateImage, RotateImageByRotationType, SmoothImageByGaussianKernel, SmoothImageBySquareAverage, SmoothTexture, StretchImage, StretchTrapezoidToRectangle, SuppressColorObjects methods of the ImageProcessingTools object
- OpenImagePage method of the ImageFile object
Input parameter
This object is the input parameter of the following methods:
- Binarize, ConvertToGray, CorrectImageGeometry, CreateDenoiseFilterParamsByImage, CropImage, DetectEmpty, DetectOrientationByText, EqualizeBrightness, FillRegionWithColor, FilterColor, ImageToBitmap, InvertRegion, MirrorImage, PreprocessCameraImage, RemoveGarbage, RemoveMotionBlur, RotateImage, RotateImageByRotationType, SmoothImageBySquareAverage, SuppressColorObjects, SmoothImageByGaussianKernel, SmoothTexture, StretchImage, StretchTrapezoidToRectangle methods of the ImageProcessingTools object
See also
8/15/2023 1:19:30 PM