[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;
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.
Windows NT: Requires version 5.0 or later.
Windows: Requires Windows 98 or later.
Windows CE: Unsupported.
Header: Declared in wingdi.h.
Metafiles Overview, Enhanced Metafile Structures, Metafiles, BITMAPINFO, GradientFill, GRADIENT_TRIANGLE, GRADIENT_RECT