EmfRecordType

EmfRecordType enumeration

The RecordType enumeration defines values that uniquely identify EMF records. These values are provided in the Type field of each record.

public enum EmfRecordType

Values

NameValueDescription
EMR_HEADER1This record defines the start of the metafile and specifies its characteristics; its contents, including the dimensions of the embedded image; the number of records in the metafile; and the resolution of the device on which the embedded image was created. These values make it possible for the metafile to be device-independent.
EMR_POLYBEZIER2This record defines one or more Bezier curves. Cubic Bezier curves are defined using specified endpoints and control points, and are stroked with the current pen.
EMR_POLYGON3This record defines a polygon consisting of two or more vertexes connected by straight lines. The polygon is outlined by using the current pen and filled by using the current brush and polygon fill mode. The polygon is closed automatically by drawing a line from the last vertex to the first.
EMR_POLYLINE4This record defines a series of line segments by connecting the points in the specified array.
EMR_POLYBEZIERTO5This record defines one or more Bezier curves based upon the current position.
EMR_POLYLINETO6This record defines one or more straight lines based upon the current position. A line is drawn from the current position to the first point specified by the points field by using the current pen. For each additional line, drawing is performed from the ending point of the previous line to the next point specified by points.
EMR_POLYPOLYLINE7This record defines multiple series of connected line segments. The line segments are drawn by using the current pen. The figures formed by the segments are not filled. T he current position is neither used nor updated by this record.
EMR_POLYPOLYGON8This record defines a series of closed polygons. Each polygon is outlined by using the current pen and filled by using the current brush and polygon fill mode. The polygons defined by this record can overlap.
EMR_SETWINDOWEXTEX9This record defines the window extent.
EMR_SETWINDOWORGEX10This record defines the window origin.
EMR_SETVIEWPORTEXTEX11This record defines the viewport extent.
EMR_SETVIEWPORTORGEX12This record defines the viewport origin.
EMR_SETBRUSHORGEX13This record defines the origin of the current brush.
EMR_EOF14This record indicates the end of the metafile.
EMR_SETPIXELV15This record defines the color of the pixel at the specified logical coordinates.
EMR_SETMAPPERFLAGS16This record specifies parameters of the process of matching logical fonts to physical fonts, which is performed by the font mapper.
EMR_SETMAPMODE17This record defines the mapping mode of the playback device context. The mapping mode defines the unit of measure used to transform page space units into device space units, and also defines the orientation of the device’s x-axis and y-axis.
EMR_SETBKMODE18This record defines the background mix mode of the playback device context. The background mix mode is used with text, hatched brushes, and pen styles that are not solid lines.
EMR_SETPOLYFILLMODE19This record defines polygon fill mode.
EMR_SETROP220This record defines binary raster operation mode.
EMR_SETSTRETCHBLTMODE21This record defines bitmap stretch mode.
EMR_SETTEXTALIGN22This record defines text alignment.
EMR_SETCOLORADJUSTMENT23This record defines the color adjustment values for the playback device context using the specified values.
EMR_SETTEXTCOLOR24This record defines the current text color.
EMR_SETBKCOLOR25This record defines the background color.
EMR_OFFSETCLIPRGN26This record redefines the clipping region of the playback device context by the specified offsets.
EMR_MOVETOEX27This record defines coordinates of the new current position, in logical units.
EMR_SETMETARGN28This record intersects the current clipping region for the playback device context with the current meta region and saves the combined region as the new meta region. The clipping region is reset to a null region.
EMR_EXCLUDECLIPRECT29This record defines a new clipping region that consists of the existing clipping region minus the specified rectangle.
EMR_INTERSECTCLIPRECT30This record defines a new clipping region from the intersection of the current clipping region and the specified rectangle.
EMR_SCALEVIEWPORTEXTEX31This record redefines the viewport for the playback device context using the ratios formed by the specified multiplicands and divisors.
EMR_SCALEWINDOWEXTEX32This record redefines the window for the playback device context using the ratios formed by the specified multiplicands and divisors.
EMR_SAVEDC33This record saves the current state of the playback device context by copying data describing selected objects and graphic modes—including the bitmap, brush, palette, font, pen, region, drawing mode, and mapping mode—to a stack of saved device contexts.
EMR_RESTOREDC34This record restores the playback device context to the specified saved state. The playback device context is restored by popping state information off a stack of saved device contexts created by earlier EMR_SAVEDC (section 2.3.11) records.
EMR_SETWORLDTRANSFORM35This record defines a two-dimensional linear transformation between world space and page space (for more information, see [MSDN-WRLDPGSPC]) for the playback device context. This transformation can be used to scale, rotate, shear, or translate graphics output.
EMR_MODIFYWORLDTRANSFORM36This record redefines the world transformation for the playback device context using the specified mode.
EMR_SELECTOBJECT37This record adds an object to the playback device context, identifying it by its index in the EMF Object Table (section 3.1.1.1).
EMR_CREATEPEN38This record defines a logical pen that has the specified style, width, and color. The pen can subsequently be selected into the playback device context and used to draw lines and curves.
EMR_CREATEBRUSHINDIRECT39This record defines a logical brush for figure filling in graphics operations.
EMR_DELETEOBJECT40This record deletes a graphics object, clearing its index in the EMF Object Table. If the deleted object is selected in the playback device context, the default object for that context property MUST be restored.
EMR_ANGLEARC41This record defines a line segment of an arc. The line segment is drawn from the current position to the beginning of the arc. The arc is drawn along the perimeter of a circle with the given radius and center. The length of the arc is defined by the given start and sweep angles.
EMR_ELLIPSE42This record defines an ellipse. The center of the ellipse is the center of the specified bounding rectangle. The ellipse is outlined by using the current pen and is filled by using the current brush.
EMR_RECTANGLE43This record defines a rectangle. The rectangle is outlined by using the current pen and filled by using the current brush.
EMR_ROUNDRECT44This record defines a rectangle with rounded corners. The rectangle is outlined by using the current pen and filled by using the current brush.
EMR_ARC45This record defines an elliptical arc.
EMR_CHORD46This record defines a chord (a region bounded by the intersection of an ellipse and a line segment, called a secant). The chord is outlined by using the current pen and filled by using the current brush.
EMR_PIE47This record defines a pie-shaped wedge bounded by the intersection of an ellipse and two radials. The pie is outlined by using the current pen and filled by using the current brush.
EMR_SELECTPALETTE48This record adds a LogPalette (section 2.2.17) object to the playback device context, identifying it by its index in the EMF Object Table.
EMR_CREATEPALETTE49This record defines a LogPalette object.
EMR_SETPALETTEENTRIES50This record defines RGB (red-green-blue) color values in a range of entries in a LogPalette object.
EMR_RESIZEPALETTE51This record increases or decreases the size of a logical palette.
EMR_REALIZEPALETTE52This record maps entries from the current logical palette to the system palette.
EMR_EXTFLOODFILL53This record fills an area of the display surface with the current brush.
EMR_LINETO54This record defines a line from the current position up to, but not including, the specified point. It resets the current position to the specified point.
EMR_ARCTO55This record defines an elliptical arc. It resets the current position to the end point of the arc.
EMR_POLYDRAW56This record defines a set of line segments and Bezier curves.
EMR_SETARCDIRECTION57This record defines the drawing direction to be used for arc and rectangle operations.
EMR_SETMITERLIMIT58This record defines the limit for the length of miter joins for the playback device context.
EMR_BEGINPATH59This record opens a path bracket in the playback device context.
EMR_ENDPATH60This record closes a path bracket and selects the path defined by the bracket into the playback device context.
EMR_CLOSEFIGURE61This record closes an open figure in a path.
EMR_FILLPATH62This record closes any open figures in the current path and fills the path’s interior by using the current brush and polygon-filling mode.
EMR_STROKEANDFILLPATH63This record closes any open figures in a path, strokes the outline of the path by using the current pen, and fills its interior by using the current brush.
EMR_STROKEPATH64This record renders the specified path by using the current pen.
EMR_FLATTENPATH65This record transforms any curve in the path that is selected into the playback device context, turning each curve into a sequence of lines.
EMR_WIDENPATH66This record redefines the current path as the area that would be painted if the path were stroked using the pen currently selected into the playback device context.
EMR_SELECTCLIPPATH67This record defines the current path as a clipping region for the playback device context, combining the new region with any existing clipping region using the specified mode.
EMR_ABORTPATH68This record aborts a path bracket or discards the path from a closed path bracket.
EMR_COMMENT70This record specifies arbitrary private data.
EMR_FILLRGN71This record fills the specified region by using the specified brush.
EMR_FRAMERGN72This record draws a border around the specified region using the specified brush.
EMR_INVERTRGN73This record inverts the colors in the specified region.
EMR_PAINTRGN74This record paints the specified region by using the brush currently selected into the playback device context.
EMR_EXTSELECTCLIPRGN75This record combines the specified region with the current clip region using the specified mode.
EMR_BITBLT76This record specifies a block transfer of pixels from a source bitmap to a destination rectangle, optionally in combination with a brush pattern, according to a specified raster operation.
EMR_STRETCHBLT77This record specifies a block transfer of pixels from a source bitmap to a destination rectangle, optionally in combination with a brush pattern, according to a specified raster operation, stretching or compressing the output to fit the dimensions of the destination, if necessary.
EMR_MASKBLT78This record specifies a block transfer of pixels from a source bitmap to a destination rectangle, optionally in combination with a brush pattern and with the application of a color mask bitmap, according to specified foreground and background raster operations.
EMR_PLGBLT79This record specifies a block transfer of pixels from a source bitmap to a destination parallelogram, with the application of a color mask bitmap.
EMR_SETDIBITSTODEVICE80This record specifies a block transfer of pixels from specified scan lines of a source bitmap to a destination rectangle.
EMR_STRETCHDIBITS81This record specifies a block transfer of pixels from a source bitmap to a destination rectangle, optionally in combination with a brush pattern, according to a specified raster operation, stretching or compressing the output to fit the dimensions of the destination, if necessary.
EMR_EXTCREATEFONTINDIRECTW82This record defines a logical font that has the specified characteristics. The font can subsequently be selected as the current font for the playback device context.
EMR_EXTTEXTOUTA83This record draws an ASCII text string using the current font and text colors.Note EMR_EXTTEXTOUTA SHOULD be emulated with an EMR_EXTTEXTOUTW record (section 2.3.5.8). This requires the ASCII text string in the EmrText object to be converted to Unicode UTF16-LE encoding.
EMR_EXTTEXTOUTW84This record draws a Unicode text string using the current font and text colors.
EMR_POLYBEZIER1685This record defines one or more Bezier curves. The curves are drawn using the current pen.
EMR_POLYGON1686This record defines a polygon consisting of two or more vertexes connected by straight lines. The polygon is outlined by using the current pen and filled by using the current brush and polygon fill mode. The polygon is closed automatically by drawing a line from the last vertex to the first.
EMR_POLYLINE1687This record defines a series of line segments by connecting the points in the specified array.
EMR_POLYBEZIERTO1688This record defines one or more Bezier curves based on the current position.
EMR_POLYLINETO1689This record defines one or more straight lines based upon the current position. A line is drawn from the current position to the first point specified by the Points field by using the current pen. For each additional line, drawing is performed from the ending point of the previous line to the next point specified by Points.
EMR_POLYPOLYLINE1690This record defines multiple series of connected line segments.
EMR_POLYPOLYGON1691This record defines a series of closed polygons. Each polygon is outlined by using the current pen and filled by using the current brush and polygon fill mode. The polygons specified by this record can overlap.
EMR_POLYDRAW1692This record defines a set of line segments and Bezier curves.
EMR_CREATEMONOBRUSH93This record defines a logical brush with the specified bitmap pattern. The bitmap can be a device-independent bitmap (DIB) section bitmap or it can be a device-dependent bitmap.
EMR_CREATEDIBPATTERNBRUSHPT94This record defines a logical brush that has the pattern specified by the DIB.
EMR_EXTCREATEPEN95This record defines a logical cosmetic or geometric pen that has the specified style, width, and brush attributes.
EMR_POLYTEXTOUTA96This record draws one or more ASCII text strings using the current font and text colors. Note EMR_POLYTEXTOUTA SHOULD be emulated with a series of EMR_EXTTEXTOUTW records, one per string
EMR_POLYTEXTOUTW97This record draws one or more Unicode text strings using the current font and text colors. Note EMR_POLYTEXTOUTW SHOULD be emulated with a series of EMR_EXTTEXTOUTW records, one per string
EMR_SETICMMODE98This record specifies the mode of Image Color Management (ICM) for graphics operations.
EMR_CREATECOLORSPACE99This record creates a logical color space object from a color profile with a name consisting of ASCII characters
EMR_SETCOLORSPACE100This record defines the current logical color space object for graphics operations.
EMR_DELETECOLORSPACE101This record deletes a logical color space object. Note An EMR_DELETEOBJECT record SHOULD be used instead of EMR_DELETECOLORSPACE to delete a logical color space object
EMR_GLSRECORD102This record specifies an OpenGL function.
EMR_GLSBOUNDEDRECORD103This record specifies an OpenGL function with a bounding rectangle for output.
EMR_PIXELFORMAT104This record specifies the pixel format to use for graphics operations
EMR_DRAWESCAPE105This record passes arbitrary information to the driver. The intent is that the information will result in drawing being done.
EMR_EXTESCAPE106This record passes arbitrary information to the driver. The intent is that the information will not result in drawing being done.
EMR_SMALLTEXTOUT108This record outputs a string.
EMR_FORCEUFIMAPPING109This record forces the font mapper to match fonts based on their UniversalFontId in preference to their LogFont information.
EMR_NAMEDESCAPE110This record passes arbitrary information to the given named driver.
EMR_COLORCORRECTPALETTE111This record specifies how to correct the entries of a logical palette object using Windows Color System (WCS) 1.0 values
EMR_SETICMPROFILEA112This record specifies a color profile in a file with a name consisting of ASCII characters, for graphics output.
EMR_SETICMPROFILEW113This record specifies a color profile in a file with a name consisting of Unicode characters, for graphics output
EMR_ALPHABLEND114This record specifies a block transfer of pixels from a source bitmap to a destination rectangle, including alpha transparency data, according to a specified blending operation.
EMR_SETLAYOUT115This record specifies the order in which text and graphics are drawn
EMR_TRANSPARENTBLT116This record specifies a block transfer of pixels from a source bitmap to a destination rectangle, treating a specified color as transparent, stretching or compressing the output to fit the dimensions of the destination, if necessary
EMR_GRADIENTFILL118This record specifies filling rectangles or triangles with gradients of color
EMR_SETLINKEDUFIS119This record sets the UniversalFontIds of linked fonts to use during character lookup.
EMR_SETTEXTJUSTIFICATION120This record specifies the amount of extra space to add to break characters for justification purposes.
EMR_COLORMATCHTOTARGETW121This record specifies whether to perform color matching with a color profile that is specified in a file with a name consisting of Unicode characters.
EMR_CREATECOLORSPACEW122This record creates a logical color space object from a color profile with a name consisting of Unicode characters

See Also