GraphicsEnumerateMetafile Method (Metafile, RectangleF, RectangleF, GraphicsUnit, GraphicsEnumerateMetafileProc)

Sends the records of a selected rectangle from a Metafile, one at a time, to a callback method for display in a specified rectangle.

Namespace:  System.Drawing
Assembly:  Aspose.Drawing (in Aspose.Drawing.dll) Version: 20.10.0.0 (20.10.0)
Syntax
C#
public void EnumerateMetafile(
	Metafile image,
	RectangleF destPoints,
	RectangleF srcRect,
	GraphicsUnit srcUnit,
	GraphicsEnumerateMetafileProc callback
)

Parameters

image
Type: System.Drawing.ImagingMetafile
Metafile to enumerate.
destPoints
Type: System.DrawingRectangleF
RectangleF structure that specifies the location and size of the drawn metafile.
srcRect
Type: System.DrawingRectangleF
RectangleF structure that specifies the portion of the metafile, relative to its upper-left corner, to draw.
srcUnit
Type: System.DrawingGraphicsUnit
Member of the GraphicsUnit enumeration that specifies the unit of measure used to determine the portion of the metafile that the rectangle specified by the srcRect parameter contains.
callback
Type: System.DrawingGraphicsEnumerateMetafileProc
EnumerateMetafileProc delegate that specifies the method to which the metafile records are sent.
See Also