EMR structure (wingdi.h)

The EMR structure provides the base structure for all enhanced metafile records. An enhanced metafile record contains the parameters for a specific GDI function used to create part of a picture in an enhanced format metafile.

Syntax

typedef struct tagEMR {
  DWORD iType;
  DWORD nSize;
} EMR, *PEMR;

Members

iType

The record type. The parameter can be one of the following (with a link to the associated record structure).

EMR_ABORTPATH EMR_ALPHABLEND EMR_ANGLEARC EMR_ARC EMR_ARCTO EMR_BEGINPATH EMR_BITBLT EMR_CHORD EMR_CLOSEFIGURE EMR_COLORCORRECTPALETTE EMR_COLORMATCHTOTARGETW EMR_CREATEBRUSHINDIRECT EMR_CREATECOLORSPACE EMR_CREATECOLORSPACEW EMR_CREATEDIBPATTERNBRUSHPT EMR_CREATEMONOBRUSH EMR_CREATEPALETTE EMR_CREATEPEN EMR_DELETECOLORSPACE EMR_DELETEOBJECT EMR_ELLIPSE EMR_ENDPATH EMR_EOF EMR_EXCLUDECLIPRECT EMR_EXTCREATEFONTINDIRECTW EMR_EXTCREATEPEN EMR_EXTFLOODFILL EMR_EXTSELECTCLIPRGN EMR_EXTTEXTOUTA EMR_EXTTEXTOUTW EMR_FILLPATH EMR_FILLRGN EMR_FLATTENPATH EMR_FRAMERGN EMR_GDICOMMENT EMR_GLSBOUNDEDRECORD EMR_GLSRECORD EMR_GRADIENTFILL EMR_INTERSECTCLIPRECT EMR_INVERTRGN EMR_LINETO EMR_MASKBLT EMR_MODIFYWORLDTRANSFORM EMR_MOVETOEX EMR_OFFSETCLIPRGN EMR_PAINTRGN EMR_PIE EMR_PIXELFORMAT EMR_PLGBLT EMR_POLYBEZIER EMR_POLYBEZIER16 EMR_POLYBEZIERTO EMR_POLYBEZIERTO16 EMR_POLYDRAW EMR_POLYDRAW16 EMR_POLYGON EMR_POLYGON16 EMR_POLYLINE EMR_POLYLINE16 EMR_POLYLINETO EMR_POLYLINETO16 EMR_POLYPOLYGON EMR_POLYPOLYGON16 EMR_POLYPOLYLINE EMR_POLYPOLYLINE16 EMR_POLYTEXTOUTA EMR_POLYTEXTOUTW EMR_REALIZEPALETTE EMR_RECTANGLE EMR_RESIZEPALETTE EMR_RESTOREDC EMR_ROUNDRECT EMR_SAVEDC EMR_SCALEVIEWPORTEXTEX EMR_SCALEWINDOWEXTEX EMR_SELECTCLIPPATH EMR_SELECTOBJECT EMR_SELECTPALETTE EMR_SETARCDIRECTION EMR_SETBKCOLOR EMR_SETBKMODE EMR_SETBRUSHORGEX EMR_SETCOLORADJUSTMENT EMR_SETCOLORSPACE EMR_SETDIBITSTODEVICE EMR_SETICMMODE EMR_SETICMPROFILEA EMR_SETICMPROFILEW EMR_SETLAYOUT EMR_SETMAPMODE EMR_SETMAPPERFLAGS EMR_SETMETARGN EMR_SETMITERLIMIT EMR_SETPALETTEENTRIES EMR_SETPIXELV EMR_SETPOLYFILLMODE EMR_SETROP2 EMR_SETSTRETCHBLTMODE EMR_SETTEXTALIGN EMR_SETTEXTCOLOR EMR_SETVIEWPORTEXTEX EMR_SETVIEWPORTORGEX EMR_SETWINDOWEXTEX EMR_SETWINDOWORGEX EMR_SETWORLDTRANSFORM EMR_STRETCHBLT EMR_STRETCHDIBITS EMR_STROKEANDFILLPATH EMR_STROKEPATH EMR_TRANSPARENTBLT EMR_WIDENPATH

nSize

The size of the record, in bytes. This member must be a multiple of four.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Header wingdi.h (include Windows.h)

See also

Metafile Structures

Metafiles Overview