ImageGear for .NET
ImGearPixelCheckerRedEyeRGB Class
Members  Example  See Also  Send Feedback
ImageGear21.Processing.Advanced Assembly > ImageGear.Processing Namespace : ImGearPixelCheckerRedEyeRGB Class




Glossary Item Box

Checks the RGB pixel using red-eye detection algorithm.

Object Model

ImGearPixelCheckerRedEyeRGB Class

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

Remarks

CheckPixel method of this class checks the RGB pixel using red-eye detection algorithm.

Example

C#Copy Code
// 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));
Visual BasicCopy Code
' 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

©2013. Accusoft Corporation. All Rights Reserved.