Search
GdiGraphics.EnumerateMetafile Method (Metafile, Rectangle, Rectangle, GraphicsUnit, Graphics.EnumerateMetafileProc, IntPtr, ImageAttributes)
See Also
 





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

Namespace: MindFusion.Drawing
Package: MindFusion.Common

 Syntax

C#  Copy Code

public void EnumerateMetafile (
    Metafile metafile,
    Rectangle destRect,
    Rectangle srcRect,
    GraphicsUnit unit,
    Graphics.EnumerateMetafileProc callback,
    IntPtr callbackData,
    ImageAttributes imageAttr
)

Visual Basic  Copy Code

Public Sub EnumerateMetafile( _
    metafile As Metafile, _
    destRect As Rectangle, _
    srcRect As Rectangle, _
    unit As GraphicsUnit, _
    callback As Graphics.EnumerateMetafileProc, _
    callbackData As IntPtr, _
    imageAttr As ImageAttributes _
)

 Parameters

metafile
A .NET Metafile object to enumerate.
destRect
A .NET Rectangle structure that specifies the location and size of the drawn metafile.
srcRect
A .NET Rectangle structure that specifies the portion of the metafile, relative to its upper-left corner, to draw.
unit
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.
imageAttr
A .NET ImageAttributes object that specifies image attribute information for the drawn image.

 See Also