RemoveRedeye method (ILEADRasterProcess)

Visual Basic example

Visual C++ 5.0 example

 

Syntax

short RemoveRedeye(ILEADRaster *pRaster, OLE_COLOR rcNewColor, short iThreshold, short iLightness);

Overview

Refer to Applying Artistic Effects.

Remarks

Removes the "red eye" effect in color images by converting the red color in the eye to the new specified color.

This method has no effect on grayscale images, since there is no "red eye" problem in grayscale images.

To use this method the user should select a small region around the eye. Otherwise, the method will change all the red color in the image. This method also allows the user to replace the red color with a new color for the eyes that is nearest to the original color.

This method supports 48 and 64-bit color images. Support for 48 and 64-bit color images is available only in the Document/Medical toolkits.

This method does not support signed data images. It returns the error code ERROR_SIGNED_DATA_NOT_SUPPORTED if a signed data image is passed to this method.

See Also

Elements:

SwapColors method

Topics:

Correcting Colors

 

Raster Images: Modifying Intensity Values

 

Using Color Values in LEADTOOLS

 

Raster Images: Modifying Individual Pixels