EMRGRADIENTFILL

[This is preliminary documentation and subject to change.]

The EMRGRADIENTFILL structure contains members for the GradientFill enhanced metafile record.

typedef struct tagEMRGRADIENTFILL 
{ 
    EMR       emr; 
    RECTL     rclBounds;
    DWORD     nVer; 
    DWORD     nTri; 
    ULONG     ulMode; 
    TRIVERTEX Ver[1]; 
}EMRGRADIENTFILL,*PEMRGRADIENTFILL; 
 

Members

emr
Base structure for all record types.
rclBounds
Bounding rectangle, in device units.
nVer
Number of vertices.
nTri
Number of rectangles or triangles to pass to GradientFill.
ulMode
Specifies the gradient fill mode.
Ver[1]
Pointer to an array of TRIVERTEX structures that each define a triangle vertex.

Remarks

This is a variable-length structure. The nVer element designates the beginning of the variable-length area. First comes an array of nVer TRIVERTEX structures to pass the vertices. Next comes an array of either nTri GRADIENT_TRIANGLE structures or nTri GRADIENT_RECT structures, depending on the value of jlMode (triangles or rectangles).

This structure is to be used during metafile playback.

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

Metafiles Overview, Enhanced Metafile Structures, Metafiles, BITMAPINFO, GradientFill, GRADIENT_TRIANGLE, GRADIENT_RECT