GRADIENT_RECT

[This is preliminary documentation and subject to change.]

The GRADIENT_RECT structure specifies the index of two vertices in the pVertex array. These two vertices form the upper-left and lower-right boundaries of a rectangle.

typedef struct _GRADIENT_RECT
{
    ULONG    UpperLeft;
    ULONG    LowerRight;
}GRADIENT_RECT, *PGRADIENT_RECT,*LPGRADIENT_RECT;
 

Members

UpperLeft
Specifies the upper-left corner of a rectangle.
LowerRight
Specifies the lower-right corner of a rectangle.

Remarks

The GRADIENT_RECT structure contains the values used in the dwMode parameter of the GradientFill function. For related GradientFill structures, see GRADIENT_TRIANGLE and TRIVERTEX.

For an example of the use of this structure, see Drawing a Shaded Rectangle.

QuickInfo

  Windows NT: Requires version 5.0 or later.
  Windows: Requires Windows 98 or later.
  Windows CE: Unsupported.
  Header: Declared in wingdi.h.

See Also

Bitmaps Overview, Bitmap Structures