FillRegionWithColor Method of the ImageProcessingTools Object

This method fills the specified region with color.

Syntax

Visual Basic .NET

Function FillRegionWithColor( _
  Image As Image, _
  Region As Region, _
  Color As Integer _
) As Image
    

C++

HRESULT FillRegionWithColor(
  IImage*  Image,
  IRegion* Region,
  int      Color,
  IImage** Result
);
    

Parameters

Image
[in] This variable refers to the Image object which is to be preprocessed.
Region
[in] Specifies the region, which is to be filled with color. Refers to the Region object.
Color
[in] Specifies the color to be used for filling the region on the image. The Integer 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.
Result
[out, retval] A pointer to the IImage* pointer variable that provides access to the resulting image.

Return values

This method has no specific return values. It returns the standard return values of ABBYY FlexiCapture SDK functions.

See also

ImageProcessingTools

15.08.2023 13:19:30

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.