emr 结构 (wingdi.h)

EMR 结构为所有增强型图元文件记录提供基结构。 增强型图元文件记录包含用于以增强格式图元文件创建图片部分的特定 GDI 函数的参数。

语法

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

成员

iType

记录类型。 参数可以是以下 (之一,其中包含指向关联记录结构) 的链接。

EMR_ABORTPATHEMR_ALPHABLENDEMR_ANGLEARC EMR_ARCEMR_ARCTOEMR_BEGINPATHEMR_BITBLT EMR_CHORDEMR_CLOSEFIGURE EMR_COLORCORRECTPALETTEEMR_COLORMATCHTOTARGETW EMR_CREATEBRUSHINDIRECT EMR_CREATECOLORSPACEEMR_CREATECOLORSPACEW EMR_CREATEDIBPATTERNBRUSHPTEMR_CREATEMONOBRUSHEMR_CREATEPALETTEEMR_CREATEPENEMR_DELETECOLORSPACEEMR_DELETEOBJECTEMR_ELLIPSEEMR_ENDPATHEMR_EOF EMR_EXCLUDECLIPRECTEMR_EXTCREATEFONTINDIRECTWEMR_EXTCREATEPEN EMR_EXTFLOODFILLEMR_EXTSELECTCLIPRGNEMR_EXTTEXTOUTAEMR_EXTTEXTOUTWEMR_FILLPATH EMR_FILLRGNEMR_FLATTENPATH EMR_FRAMERGNEMR_GDICOMMENTEMR_GLSBOUNDEDRECORDEMR_GLSRECORDEMR_GRADIENTFILLEMR_INTERSECTCLIPRECTEMR_INVERTRGNEMR_LINETO EMR_MASKBLTEMR_MODIFYWORLDTRANSFORMEMR_MOVETOEX EMR_OFFSETCLIPRGNEMR_PAINTRGNEMR_PIEEMR_PIXELFORMATEMR_PLGBLT EMR_POLYBEZIEREMR_POLYBEZIER16EMR_POLYBEZIERTOEMR_POLYBEZIERTO16EMR_POLYDRAWEMR_POLYDRAW16EMR_POLYGONEMR_POLYGON16EMR_POLYLINE EMR_POLYLINE16EMR_POLYLINETOEMR_POLYLINETO16 EMR_POLYLINETO16EMR_POLYPOLYGONEMR_POLYPOLYGON16EMR_POLYPOLYLINEEMR_POLYPOLYLINE16EMR_POLYTEXTOUTAEMR_POLYTEXTOUTWEMR_REALIZEPALETTE EMR_RECTANGLEEMR_RESIZEPALETTEEMR_RESTOREDC EMR_ROUNDRECTEMR_SAVEDCEMR_SCALEVIEWPORTEXTEXEMR_SCALEWINDOWEXTEXEMR_SELECTCLIPPATHEMR_SELECTOBJECTEMR_SELECTPALETTEEMR_SETARCDIRECTION EMR_SETBKCOLOREMR_SETBKMODEEMR_SETBRUSHORGEXEMR_SETCOLORADJUSTMENT EMR_SETCOLORSPACEEMR_SETDIBITSTODEVICE EMR_SETICMMODEEMR_SETICMPROFILEA EMR_SETICMPROFILEWEMR_SETLAYOUT EMR_SETMAPMODEEMR_SETMAPPERFLAGS EMR_SETMETARGNEMR_SETMITERLIMIT EMR_SETPALETTEENTRIESEMR_SETPIXELVEMR_SETPOLYFILLMODEEMR_SETROP2EMR_SETSTRETCHBLTMODEEMR_SETTEXTALIGNEMR_SETTEXTCOLOR EMR_SETVIEWPORTEXTEXEMR_SETVIEWPORTORGEXEMR_SETWINDOWEXTEXEMR_SETWINDOWORGEXEMR_SETWORLDTRANSFORMEMR_STRETCHBLTEMR_STRETCHDIBITS EMR_STROKEANDFILLPATHEMR_STROKEPATHEMR_TRANSPARENTBLT EMR_WIDENPATH

nSize

记录的大小(以字节为单位)。 此成员必须是 4 的倍数。

要求

要求
最低受支持的客户端 Windows 2000 Professional [仅限桌面应用]
最低受支持的服务器 Windows 2000 Server [仅限桌面应用]
标头 wingdi.h (包括 Windows.h)

另请参阅

图元文件结构

图元文件概述