次の方法で共有


TRIVERTEX (Compact 2013)

3/28/2014

This structure defines the screen position, color, and alpha information for a point.

Syntax

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

Members

  • x
    Specifies the x-coordinate of a point in logical units.
  • y
    Specifies the y-coordinate of a point in logical units.
  • Red
    Specifies the red component of the color information at the point x, y.

    This value must be in the range from 0x0000 to 0xff00.

  • Green
    Specifies the green component of the color information at the point x, y.

    This value must be in the range from 0x0000 to 0xff00.

  • Blue
    Specifies the blue component of the color information at the point x, y.

    This value must be in the range from 0x0000 to 0xff00.

  • Alpha
    Specifies the color transparency at the point x, y.

    This value must be in the range from 0x0000 to 0xff00.

Remarks

The TRIVERTEX structure contains information needed by the pVertex parameter of GradientFill.

Requirements

Header

windows.h

See Also

Reference

GDI Structures
GradientFill
GRADIENT_RECT