TRIVERTEX

[This is preliminary documentation and subject to change.]

The TRIVERTEX structure contains color information and position information.

typedef USHORT COLOR16;
typedef struct _TRIVERTEX
{
    LONG        x;
    Long        y;
    COLOR16     Red;
    COLOR16     Green;
    COLOR16     Blue;
    COLOR16     Alpha;
}TRIVERTEX,*PTRIVERTEX,*LPTRIVERTEX;
 

Members

x
Specifies the x-coordinate, in logical units, of the upper-left corner of the rectangle.
y
Specifies the y-coordinate, in logical units, of the upper-left corner of the rectangle.
Red
Indicates color information at the point of x, y.
Green
Indicates color information at the point of x, y.
Blue
Indicates color information at the point of x, y.
Alpha
Indicates color information at the point of x, y.

Remarks

In the TRIVERTEX structure, x and y indicate position in the same manner as in the POINTL structure contained in the wtypes.h header file. Red, Green, Blue, and Alpha members indicate color information at the point x, y. The color information of each channel is specified as a value from 0x0000 to 0xff00. This allows higher color resolution for an object that has been split into small triangles for display. The TRIVERTEX structure contains information needed by the pVertex parameter of GradientFill.

For an example of the use of this structure, see Drawing a Shaded Triangle and 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