AddPaintRegion Method of the ImageModification Object
This method adds a new paint region to the internal array of paint regions of the ImageModification object. To remove all the paint regions previously added call the IImageModification::ClearPaintRegions method. If the modification must be applied to a single color (or gray) plane of the image, coordinates of the region should be specified on this color (gray) plane. If the modification must be applied to the whole ImageModification, the coordinates should be specified on the deskewed black-and-white image plane.
Syntax
C++
HRESULT AddPaintRegion(
IRegion* Region,
int Color
);
C#
void AddPaintRegion( IRegion Region, int Color );
Visual Basic .NET
Sub AddPaintRegion( _ Region As IRegion, _ Color As Integer _ )
Parameters
- Region
- [in] This parameter of the Region type specifies the paint region to be added.
- Color
- [in] This variable specifies the color with which the image inside the region is filled in. The value of this parameter can be -1, which means that the color is transparent.
-
Note: The int value is calculated from the RGB triplet using the formula: (red value) + (256 x green value) + (65536 x blue value), where red value is the first triplet component, green value is the second triplet component, blue value is the third triplet component. For example, the int value of the color white equals 16777215.
Return values
This method has no specific return values. It returns the standard return values of ABBYY FineReader Engine functions.
Remarks
Parts of the image inside the paint regions will be filled in with the specified color when IImageDocument::Modify method is applied.
See also
17.09.2024 15:14:40