ImageGear .NET - Updated November 28, 2017
ImGearPixelCheckerRedEyeRGB Class
Members  Example 




ImageGear23.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
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