ImageGear .NET v24.12 - Updated
ImGearPixelCheckerRedEyeRGB Class
Members  Example 




ImageGear24.Processing.Advanced Assembly > ImageGear.Processing Namespace : ImGearPixelCheckerRedEyeRGB Class
Checks the RGB pixel using red-eye detection algorithm.
Object Model
ImGearPixelCheckerRedEyeRGB Class
Syntax
'Declaration
 
Public Class ImGearPixelCheckerRedEyeRGB 
   Implements IImGearPixelChecker 
'Usage
 
Dim instance As ImGearPixelCheckerRedEyeRGB
public class ImGearPixelCheckerRedEyeRGB : IImGearPixelChecker  
public __gc class ImGearPixelCheckerRedEyeRGB : public IImGearPixelChecker  
public ref class ImGearPixelCheckerRedEyeRGB : public IImGearPixelChecker  
Remarks
CheckPixel method of this class checks the RGB pixel using red-eye detection algorithm.
Example
// Detect the red-eye area around a point and remove the red-eye effect.

// Location of a red-eye, can be obtained by a mouse click by user.
ImGearPoint igPoint = new ImGearPoint(204, 308);
// Detection class for red-eye area, threshold values from 0.5-2.0
ImGearPixelCheckerRedEyeRGB igPixelCheckerRedEyeRGB = new ImGearPixelCheckerRedEyeRGB(0.7);
// Detect the red-eye area around the target point.
ImGearEffects.DetectArea(igRasterPage, igPoint, igPixelCheckerRedEyeRGB);

// Remove red-eye effect with a threshold of 0.7 and brightness of 0.5
ImGearEffects.ProcessArea(igRasterPage,
    new ImGearPixelProcessorRedEyeRGB(igRasterPage.DIB, 0.7, 0.5));
' Detect the red-eye area around a point and remove the red-eye effect.

' Location of a red-eye, can be obtained by a mouse click by user.
Dim igPoint As New ImGearPoint(204, 308)
' Detection class for red-eye area, threshold values from 0.5-2.0
Dim igPixelCheckerRedEyeRGB As New ImGearPixelCheckerRedEyeRGB(0.7)
' Detect the red-eye area around the target point.
ImGearEffects.DetectArea(igRasterPage, igPoint, igPixelCheckerRedEyeRGB)

' Remove red-eye effect with a threshold of 0.7 and brightness of 0.5
ImGearEffects.ProcessArea(igRasterPage, New ImGearPixelProcessorRedEyeRGB(igRasterPage.DIB, 0.7, 0.5))
Inheritance Hierarchy

System.Object
   ImageGear.Processing.ImGearPixelCheckerRedEyeRGB

See Also

Reference

ImGearPixelCheckerRedEyeRGB Members
ImageGear.Processing Namespace
DetectArea Method
ProcessArea Method