GRADIENT_TRIANGLE

[This is preliminary documentation and subject to change.]

The GRADIENT_TRIANGLE structure specifies the index of three vertices in the pVertex array. These three vertices form one triangle.

typedef struct _GRADIENT_TRIANGLE
{
    ULONG    Vertex1;
    ULONG    Vertex2;
    ULONG    Vertex3;
}GRADIENT_TRIANGLE,*PGRADIENT_TRIANGLE,*LPGRADIENT_TRIANGLE;
 

Members

Vertex1
First point of the triangle where sides intersect.
Vertex2
Second point of the triangle where sides intersect.
Vertex3
Third point of the triangle where sides intersect.

Remarks

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

For an example of this function, see Drawing a Shaded Triangle.

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, GradientFill, GRADIENT_RECT, TRIVERTEX