RedEyeCorrectionParams structure (gdipluseffects.h)

A RedEyeCorrectionParams structure contains members that specify the areas of a bitmap to which a red-eye correction is applied.

You can correct red eyes in a bitmap by following these steps.

  1. Create and initialize a RedEyeCorrectionParams structure.
  2. Pass the address of the RedEyeCorrectionParams structure to the RedEyeCorrection::SetParameters method of a RedEyeCorrection object.
  3. Pass the address of the RedEyeCorrection object to the Graphics::DrawImage method or to the Bitmap::ApplyEffect method.

Syntax

struct RedEyeCorrectionParams {
  UINT numberOfAreas;
  RECT *areas;
};

Members

numberOfAreas

Type: UINT

Integer that specifies the number of RECT structures in the areas array.

areas

Type: RECT*

Pointer to an array of RECT structures, each of which specifies an area of the bitmap to which red eye correction should be applied.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Header gdipluseffects.h (include Gdiplus.h)