GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureImaging Class / FxRedEyesCorrection Method
GdPicture image identifier.
Example





In This Topic
FxRedEyesCorrection Method (GdPictureImaging)
In This Topic
Performs red eyes correction filter on a GdPicture image or on an area of a GdPicture image defined by SetROI() method.
Syntax
'Declaration
 
Public Function FxRedEyesCorrection( _
   ByVal ImageID As Integer _
) As GdPictureStatus
public GdPictureStatus FxRedEyesCorrection( 
   int ImageID
)
public function FxRedEyesCorrection( 
    ImageID: Integer
): GdPictureStatus; 
public function FxRedEyesCorrection( 
   ImageID : int
) : GdPictureStatus;
public: GdPictureStatus FxRedEyesCorrection( 
   int ImageID
) 
public:
GdPictureStatus FxRedEyesCorrection( 
   int ImageID
) 

Parameters

ImageID
GdPicture image identifier.

Return Value

A member of the GdPictureStatus enumeration.
Remarks
This method is used in the "Image Processing" Demo.
Example
Performing red eyes correction filter on a jpeg image.
using (GdPictureImaging gdpictureImaging = new GdPictureImaging())
{
    // LoadInMemory parameter is set to true in order to be able to update the input file.
    int imageID = gdpictureImaging.CreateGdPictureImageFromFile("image.jpg", true);
 
    // Perform red eyes correction filter.
    gdpictureImaging.FxRedEyesCorrection(imageID);
    gdpictureImaging.SaveAsJPEG(imageID, "image.jpg", 75);
    gdpictureImaging.ReleaseGdPictureImage(imageID);
}
See Also