Charting for WinForms Programmer's Guide
GdiGraphics.EnumerateMetafile Method (Metafile, Point[], Rectangle, GraphicsUnit, Graphics.EnumerateMetafileProc, IntPtr)
See Also
 






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

Namespace: MindFusion.Drawing
Assembly: MindFusion.Common

 Syntax

C#  Copy Code

public void EnumerateMetafile (
    Metafile metafile,
    Point[] destPoints,
    Rectangle srcRect,
    GraphicsUnit srcUnit,
    Graphics.EnumerateMetafileProc callback,
    IntPtr callbackData
)

Visual Basic  Copy Code

Public Sub EnumerateMetafile( _
    metafile As Metafile, _
    destPoints() As Point, _
    srcRect As Rectangle, _
    srcUnit As GraphicsUnit, _
    callback As Graphics.EnumerateMetafileProc, _
    callbackData As IntPtr _
)

 Parameters

metafile
A .NET Metafile object to enumerate.
destPoints
An array of three .NET Point structures that define a parallelogram that determines the size and location of the drawn metafile.
srcRect
A .NET Rectangle structure that specifies the portion of the metafile, relative to its upper-left corner, to draw.
srcUnit
Member of the .NET 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
A .NET Graphics.EnumerateMetafileProc delegate that specifies the method to which the metafile records are sent.
callbackData
Internal pointer that is required, but ignored. You can pass IntPtr.Zero for this parameter.

 See Also

EnumerateMetafile Method Overload List
GdiGraphics Members
GdiGraphics Class
MindFusion.Drawing Namespace