FilterColor Method of the ImageProcessingTools Object
This method allows you to remove color objects from the image. You can remove red, green, blue, or yellow objects from the entire image or only from some parts of the image - from a specified region, its background, or only stamps and signatures in this region.
Important! This method can be used for color images only.
Syntax
Visual Basic .NET
Function FilterColor( _ Image As Image, _ Region As Region, _ Color As ColorToFilterEnum, _ Mode As FilterColorModeEnum _ ) As Image
C++
HRESULT FilterColor( IImage* Image, IRegion* Region, ColorToFilterEnum Color, FilterColorModeEnum Mode, IImage** Result );
Parameters
- Image
- [in] This variable refers to the Image object which is to be preprocessed.
- Region
- [in] This parameter of the Region type specifies the set of rectangles from which to remove objects. This parameter may be 0. In this case color objects are removed from the entire image.
- Color
- [in] This variable of the ColorToFilterEnum type defines the color of the object.
- Mode
- [in] This variable of the FilterColorModeEnum type defines the type of the objects to be removed: objects from the entire image, only background objects, or only color stamps and signatures.
- Result
- [out, retval] A pointer to the IImage* pointer variable that provides access to the preprocessed image.
Return values
This method has no specific return values. It returns the standard return values of ABBYY FlexiCapture SDK functions.
See also
15.08.2023 13:19:30