Graphics.EnumerateMetafile 方法

定義

將所指定 Metafile 中的資料錄一次一筆地傳送至回呼方法,以便在指定的點上顯示。

多載

EnumerateMetafile(Metafile, PointF, RectangleF, GraphicsUnit, Graphics+EnumerateMetafileProc, IntPtr)

將所選取矩形中的資料錄從 Metafile 一次一筆地傳送至回呼方法,以便在指定的點上顯示。

EnumerateMetafile(Metafile, Rectangle, Graphics+EnumerateMetafileProc, IntPtr, ImageAttributes)

將指定之 Metafile 的記錄一次一筆地傳送至回呼方法,以使用指定之影像屬性在指定的矩形中顯示。

EnumerateMetafile(Metafile, Rectangle, Rectangle, GraphicsUnit, Graphics+EnumerateMetafileProc)

將所選取矩形中的資料錄從 Metafile 一次一筆地傳送至回呼方法,以便在指定的矩形中顯示。

EnumerateMetafile(Metafile, RectangleF, Graphics+EnumerateMetafileProc, IntPtr, ImageAttributes)

將指定之 Metafile 的記錄一次一筆地傳送至回呼方法,以使用指定之影像屬性在指定的矩形中顯示。

EnumerateMetafile(Metafile, RectangleF, RectangleF, GraphicsUnit, Graphics+EnumerateMetafileProc)

將所選取矩形中的資料錄從 Metafile 一次一筆地傳送至回呼方法,以便在指定的矩形中顯示。

EnumerateMetafile(Metafile, Point, Rectangle, GraphicsUnit, Graphics+EnumerateMetafileProc, IntPtr)

將所選取矩形中的資料錄從 Metafile 一次一筆地傳送至回呼方法,以便在指定的點上顯示。

EnumerateMetafile(Metafile, Point[], Rectangle, GraphicsUnit, Graphics+EnumerateMetafileProc, IntPtr)

將所選取矩形中的資料錄從 Metafile 一次一筆地傳送至回呼方法,以便在指定的平行四邊形中顯示。

EnumerateMetafile(Metafile, PointF[], RectangleF, GraphicsUnit, Graphics+EnumerateMetafileProc, IntPtr)

將所選取矩形中的資料錄從 Metafile 一次一筆地傳送至回呼方法,以便在指定的平行四邊形中顯示。

EnumerateMetafile(Metafile, PointF[], RectangleF, GraphicsUnit, Graphics+EnumerateMetafileProc)

將所選取矩形中的資料錄從 Metafile 一次一筆地傳送至回呼方法,以便在指定的平行四邊形中顯示。

EnumerateMetafile(Metafile, RectangleF, RectangleF, GraphicsUnit, Graphics+EnumerateMetafileProc, IntPtr)

將所選取矩形中的資料錄從 Metafile 一次一筆地傳送至回呼方法,以便在指定的矩形中顯示。

EnumerateMetafile(Metafile, Point, Rectangle, GraphicsUnit, Graphics+EnumerateMetafileProc, IntPtr, ImageAttributes)

將選取之矩形中的記錄從 Metafile 一次一筆地傳送至回呼方法,以使用指定之影像屬性在指定的點上顯示。

EnumerateMetafile(Metafile, Point[], Rectangle, GraphicsUnit, Graphics+EnumerateMetafileProc, IntPtr, ImageAttributes)

將選取之矩形中的記錄從 Metafile 一次一筆地傳送至回呼方法,以使用指定之影像屬性在指定的平行四邊形中顯示。

EnumerateMetafile(Metafile, PointF, RectangleF, GraphicsUnit, Graphics+EnumerateMetafileProc, IntPtr, ImageAttributes)

將選取之矩形中的記錄從 Metafile 一次一筆地傳送至回呼方法,以使用指定之影像屬性在指定的點上顯示。

EnumerateMetafile(Metafile, PointF[], RectangleF, GraphicsUnit, Graphics+EnumerateMetafileProc, IntPtr, ImageAttributes)

將選取之矩形中的記錄從 Metafile 一次一筆地傳送至回呼方法,以使用指定之影像屬性在指定的平行四邊形中顯示。

EnumerateMetafile(Metafile, Rectangle, Rectangle, GraphicsUnit, Graphics+EnumerateMetafileProc, IntPtr, ImageAttributes)

將選取之矩形的記錄從 Metafile 一次一筆地傳送至回呼方法,以使用指定之影像屬性在指定的矩形中顯示。

EnumerateMetafile(Metafile, RectangleF, RectangleF, GraphicsUnit, Graphics+EnumerateMetafileProc, IntPtr, ImageAttributes)

將選取之矩形的記錄從 Metafile 一次一筆地傳送至回呼方法,以使用指定之影像屬性在指定的矩形中顯示。

EnumerateMetafile(Metafile, Rectangle, Rectangle, GraphicsUnit, Graphics+EnumerateMetafileProc, IntPtr)

將所選取矩形中的資料錄從 Metafile 一次一筆地傳送至回呼方法,以便在指定的矩形中顯示。

EnumerateMetafile(Metafile, PointF[], Graphics+EnumerateMetafileProc, IntPtr, ImageAttributes)

將指定之 Metafile 中的記錄一次一筆地傳送至回呼方法,以使用指定之影像屬性在指定的平行四邊形中顯示。

EnumerateMetafile(Metafile, Point, Rectangle, GraphicsUnit, Graphics+EnumerateMetafileProc)

將所選取矩形中的資料錄從 Metafile 一次一筆地傳送至回呼方法,以便在指定的點上顯示。

EnumerateMetafile(Metafile, PointF, Graphics+EnumerateMetafileProc, IntPtr, ImageAttributes)

將指定之 Metafile 中的記錄一次一筆地傳送至回呼方法,以使用指定之影像屬性在指定的點上顯示。

EnumerateMetafile(Metafile, Point[], Graphics+EnumerateMetafileProc)

將所指定 Metafile 中的資料錄一次一筆地傳送至回呼方法,以便在指定的平行四邊形中顯示。

EnumerateMetafile(Metafile, PointF, Graphics+EnumerateMetafileProc)

將所指定 Metafile 中的資料錄一次一筆地傳送至回呼方法,以便在指定的點上顯示。

EnumerateMetafile(Metafile, PointF[], Graphics+EnumerateMetafileProc)

將所指定 Metafile 中的資料錄一次一筆地傳送至回呼方法,以便在指定的平行四邊形中顯示。

EnumerateMetafile(Metafile, Rectangle, Graphics+EnumerateMetafileProc)

將所指定 Metafile 中的資料錄一次一筆地傳送至回呼方法,以便在指定的矩形中顯示。

EnumerateMetafile(Metafile, RectangleF, Graphics+EnumerateMetafileProc)

將所指定 Metafile 中的資料錄一次一筆地傳送至回呼方法,以便在指定的矩形中顯示。

EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc, IntPtr)

將所指定 Metafile 中的資料錄一次一筆地傳送至回呼方法,以便在指定的點上顯示。

EnumerateMetafile(Metafile, Point[], Graphics+EnumerateMetafileProc, IntPtr)

將所指定 Metafile 中的資料錄一次一筆地傳送至回呼方法,以便在指定的平行四邊形中顯示。

EnumerateMetafile(Metafile, PointF, Graphics+EnumerateMetafileProc, IntPtr)

將所指定 Metafile 中的資料錄一次一筆地傳送至回呼方法,以便在指定的點上顯示。

EnumerateMetafile(Metafile, PointF[], Graphics+EnumerateMetafileProc, IntPtr)

將所指定 Metafile 中的資料錄一次一筆地傳送至回呼方法,以便在指定的平行四邊形中顯示。

EnumerateMetafile(Metafile, Rectangle, Graphics+EnumerateMetafileProc, IntPtr)

將所指定 Metafile 中的資料錄一次一筆地傳送至回呼方法,以便在指定的矩形中顯示。

EnumerateMetafile(Metafile, RectangleF, Graphics+EnumerateMetafileProc, IntPtr)

將所指定 Metafile 中的資料錄一次一筆地傳送至回呼方法,以便在指定的矩形中顯示。

EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc, IntPtr, ImageAttributes)

將指定之 Metafile 中的記錄一次一筆地傳送至回呼方法,以使用指定之影像屬性在指定的點上顯示。

EnumerateMetafile(Metafile, PointF, RectangleF, GraphicsUnit, Graphics+EnumerateMetafileProc)

將所選取矩形中的資料錄從 Metafile 一次一筆地傳送至回呼方法,以便在指定的點上顯示。

EnumerateMetafile(Metafile, Point[], Graphics+EnumerateMetafileProc, IntPtr, ImageAttributes)

將指定之 Metafile 中的記錄一次一筆地傳送至回呼方法,以使用指定之影像屬性在指定的平行四邊形中顯示。

EnumerateMetafile(Metafile, Point[], Rectangle, GraphicsUnit, Graphics+EnumerateMetafileProc)

將所選取矩形中的資料錄從 Metafile 一次一筆地傳送至回呼方法,以便在指定的平行四邊形中顯示。

EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)

將所指定 Metafile 中的資料錄一次一筆地傳送至回呼方法,以便在指定的點上顯示。

EnumerateMetafile(Metafile, PointF, RectangleF, GraphicsUnit, Graphics+EnumerateMetafileProc, IntPtr)

來源:
Graphics.cs
來源:
Graphics.cs
來源:
Graphics.cs

將所選取矩形中的資料錄從 Metafile 一次一筆地傳送至回呼方法,以便在指定的點上顯示。

public:
 void EnumerateMetafile(System::Drawing::Imaging::Metafile ^ metafile, System::Drawing::PointF destPoint, System::Drawing::RectangleF srcRect, System::Drawing::GraphicsUnit srcUnit, System::Drawing::Graphics::EnumerateMetafileProc ^ callback, IntPtr callbackData);
public void EnumerateMetafile (System.Drawing.Imaging.Metafile metafile, System.Drawing.PointF destPoint, System.Drawing.RectangleF srcRect, System.Drawing.GraphicsUnit srcUnit, System.Drawing.Graphics.EnumerateMetafileProc callback, IntPtr callbackData);
member this.EnumerateMetafile : System.Drawing.Imaging.Metafile * System.Drawing.PointF * System.Drawing.RectangleF * System.Drawing.GraphicsUnit * System.Drawing.Graphics.EnumerateMetafileProc * nativeint -> unit
Public Sub EnumerateMetafile (metafile As Metafile, destPoint As PointF, srcRect As RectangleF, srcUnit As GraphicsUnit, callback As Graphics.EnumerateMetafileProc, callbackData As IntPtr)

參數

metafile
Metafile

要列舉的 Metafile

destPoint
PointF

PointF 結構,指定所繪製中繼檔的左上角位置。

srcRect
RectangleF

RectangleF 結構,指定與其左上角相關且要繪製之中繼檔部分。

srcUnit
GraphicsUnit

GraphicsUnit 列舉型別的成員,指定用來判斷由 srcRect 參數指定之矩形所包含之中繼檔部分的測量單位。

callback
Graphics.EnumerateMetafileProc

Graphics.EnumerateMetafileProc 委派,指定中繼檔記錄被傳送至的方法。

callbackData
IntPtr

nativeint

必要但被忽略的內部指標。 您可以為這個參數傳入 Zero

範例

如需程式碼範例,請參閱EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)

備註

這個方法會列舉指定元檔中包含的記錄。 每個記錄都會個別傳送至 參數所 callback 指定的回呼方法。 一般而言,回呼方法會 PlayRecord 呼叫 方法來「播放」或繪製記錄。

如果回呼方法呼叫 PlayRecord,則必須呼叫 PlayRecord 所列舉之特定 Metafile 方法來執行此動作。

忽略參數所 srcRect 指定矩形外部的任何繪圖。

另請參閱

適用於

EnumerateMetafile(Metafile, Rectangle, Graphics+EnumerateMetafileProc, IntPtr, ImageAttributes)

來源:
Graphics.cs
來源:
Graphics.cs
來源:
Graphics.cs

將指定之 Metafile 的記錄一次一筆地傳送至回呼方法,以使用指定之影像屬性在指定的矩形中顯示。

public:
 void EnumerateMetafile(System::Drawing::Imaging::Metafile ^ metafile, System::Drawing::Rectangle destRect, System::Drawing::Graphics::EnumerateMetafileProc ^ callback, IntPtr callbackData, System::Drawing::Imaging::ImageAttributes ^ imageAttr);
public void EnumerateMetafile (System.Drawing.Imaging.Metafile metafile, System.Drawing.Rectangle destRect, System.Drawing.Graphics.EnumerateMetafileProc callback, IntPtr callbackData, System.Drawing.Imaging.ImageAttributes imageAttr);
public void EnumerateMetafile (System.Drawing.Imaging.Metafile metafile, System.Drawing.Rectangle destRect, System.Drawing.Graphics.EnumerateMetafileProc callback, IntPtr callbackData, System.Drawing.Imaging.ImageAttributes? imageAttr);
member this.EnumerateMetafile : System.Drawing.Imaging.Metafile * System.Drawing.Rectangle * System.Drawing.Graphics.EnumerateMetafileProc * nativeint * System.Drawing.Imaging.ImageAttributes -> unit
Public Sub EnumerateMetafile (metafile As Metafile, destRect As Rectangle, callback As Graphics.EnumerateMetafileProc, callbackData As IntPtr, imageAttr As ImageAttributes)

參數

metafile
Metafile

要列舉的 Metafile

destRect
Rectangle

Rectangle 結構,指定所繪製中繼檔的位置和大小。

callback
Graphics.EnumerateMetafileProc

Graphics.EnumerateMetafileProc 委派,指定中繼檔記錄被傳送至的方法。

callbackData
IntPtr

nativeint

必要但被忽略的內部指標。 您可以為這個參數傳入 Zero

imageAttr
ImageAttributes

ImageAttributes,指定所繪製影像的影像屬性資訊。

範例

如需程式碼範例,請參閱EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)

備註

這個方法會列舉指定元檔中包含的記錄。 每個記錄會個別傳送至 參數所 callback 指定的回呼方法。 一般而言,回呼方法會 PlayRecord 呼叫 方法以「播放」或繪製記錄。

如果回呼方法呼叫 PlayRecord,它必須藉由呼叫 PlayRecord 所列舉之特定 Metafile 的方法來執行此動作。

參數所 imageAttr 指定的影像屬性會取代寫入元檔時所指定的屬性。

另請參閱

適用於

EnumerateMetafile(Metafile, Rectangle, Rectangle, GraphicsUnit, Graphics+EnumerateMetafileProc)

來源:
Graphics.cs
來源:
Graphics.cs
來源:
Graphics.cs

將所選取矩形中的資料錄從 Metafile 一次一筆地傳送至回呼方法,以便在指定的矩形中顯示。

public:
 void EnumerateMetafile(System::Drawing::Imaging::Metafile ^ metafile, System::Drawing::Rectangle destRect, System::Drawing::Rectangle srcRect, System::Drawing::GraphicsUnit srcUnit, System::Drawing::Graphics::EnumerateMetafileProc ^ callback);
public void EnumerateMetafile (System.Drawing.Imaging.Metafile metafile, System.Drawing.Rectangle destRect, System.Drawing.Rectangle srcRect, System.Drawing.GraphicsUnit srcUnit, System.Drawing.Graphics.EnumerateMetafileProc callback);
member this.EnumerateMetafile : System.Drawing.Imaging.Metafile * System.Drawing.Rectangle * System.Drawing.Rectangle * System.Drawing.GraphicsUnit * System.Drawing.Graphics.EnumerateMetafileProc -> unit
Public Sub EnumerateMetafile (metafile As Metafile, destRect As Rectangle, srcRect As Rectangle, srcUnit As GraphicsUnit, callback As Graphics.EnumerateMetafileProc)

參數

metafile
Metafile

要列舉的 Metafile

destRect
Rectangle

Rectangle 結構,指定所繪製中繼檔的位置和大小。

srcRect
Rectangle

Rectangle 結構,指定與其左上角相關且要繪製之中繼檔部分。

srcUnit
GraphicsUnit

GraphicsUnit 列舉型別的成員,指定用來判斷由 srcRect 參數指定之矩形所包含之中繼檔部分的測量單位。

callback
Graphics.EnumerateMetafileProc

Graphics.EnumerateMetafileProc 委派,指定中繼檔記錄被傳送至的方法。

範例

如需程式碼範例,請參閱EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)

備註

這個方法會列舉指定元檔中包含的記錄。 每個記錄會個別傳送至 參數所 callback 指定的回呼方法。 一般而言,回呼方法會 PlayRecord 呼叫 方法以「播放」或繪製記錄。

如果回呼方法呼叫 PlayRecord,它必須藉由呼叫 PlayRecord 所列舉之特定 Metafile 的方法來執行此動作。

忽略參數所 srcRect 指定之矩形外的任何繪圖。

另請參閱

適用於

EnumerateMetafile(Metafile, RectangleF, Graphics+EnumerateMetafileProc, IntPtr, ImageAttributes)

來源:
Graphics.cs
來源:
Graphics.cs
來源:
Graphics.cs

將指定之 Metafile 的記錄一次一筆地傳送至回呼方法,以使用指定之影像屬性在指定的矩形中顯示。

public:
 void EnumerateMetafile(System::Drawing::Imaging::Metafile ^ metafile, System::Drawing::RectangleF destRect, System::Drawing::Graphics::EnumerateMetafileProc ^ callback, IntPtr callbackData, System::Drawing::Imaging::ImageAttributes ^ imageAttr);
public void EnumerateMetafile (System.Drawing.Imaging.Metafile metafile, System.Drawing.RectangleF destRect, System.Drawing.Graphics.EnumerateMetafileProc callback, IntPtr callbackData, System.Drawing.Imaging.ImageAttributes imageAttr);
public void EnumerateMetafile (System.Drawing.Imaging.Metafile metafile, System.Drawing.RectangleF destRect, System.Drawing.Graphics.EnumerateMetafileProc callback, IntPtr callbackData, System.Drawing.Imaging.ImageAttributes? imageAttr);
member this.EnumerateMetafile : System.Drawing.Imaging.Metafile * System.Drawing.RectangleF * System.Drawing.Graphics.EnumerateMetafileProc * nativeint * System.Drawing.Imaging.ImageAttributes -> unit
Public Sub EnumerateMetafile (metafile As Metafile, destRect As RectangleF, callback As Graphics.EnumerateMetafileProc, callbackData As IntPtr, imageAttr As ImageAttributes)

參數

metafile
Metafile

要列舉的 Metafile

destRect
RectangleF

RectangleF 結構,指定所繪製中繼檔的位置和大小。

callback
Graphics.EnumerateMetafileProc

Graphics.EnumerateMetafileProc 委派,指定中繼檔記錄被傳送至的方法。

callbackData
IntPtr

nativeint

必要但被忽略的內部指標。 您可以為這個參數傳入 Zero

imageAttr
ImageAttributes

ImageAttributes,指定所繪製影像的影像屬性資訊。

範例

如需程式碼範例,請參閱EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)

備註

這個方法會列舉指定元檔中包含的記錄。 每個記錄會個別傳送至 參數所 callback 指定的回呼方法。 一般而言,回呼方法會 PlayRecord 呼叫 方法以「播放」或繪製記錄。

如果回呼方法呼叫 PlayRecord,它必須藉由呼叫 PlayRecord 所列舉之特定 Metafile 的方法來執行此動作。

參數所 imageAttr 指定的影像屬性會取代寫入元檔時所指定的屬性。

另請參閱

適用於

EnumerateMetafile(Metafile, RectangleF, RectangleF, GraphicsUnit, Graphics+EnumerateMetafileProc)

來源:
Graphics.cs
來源:
Graphics.cs
來源:
Graphics.cs

將所選取矩形中的資料錄從 Metafile 一次一筆地傳送至回呼方法,以便在指定的矩形中顯示。

public:
 void EnumerateMetafile(System::Drawing::Imaging::Metafile ^ metafile, System::Drawing::RectangleF destRect, System::Drawing::RectangleF srcRect, System::Drawing::GraphicsUnit srcUnit, System::Drawing::Graphics::EnumerateMetafileProc ^ callback);
public void EnumerateMetafile (System.Drawing.Imaging.Metafile metafile, System.Drawing.RectangleF destRect, System.Drawing.RectangleF srcRect, System.Drawing.GraphicsUnit srcUnit, System.Drawing.Graphics.EnumerateMetafileProc callback);
member this.EnumerateMetafile : System.Drawing.Imaging.Metafile * System.Drawing.RectangleF * System.Drawing.RectangleF * System.Drawing.GraphicsUnit * System.Drawing.Graphics.EnumerateMetafileProc -> unit
Public Sub EnumerateMetafile (metafile As Metafile, destRect As RectangleF, srcRect As RectangleF, srcUnit As GraphicsUnit, callback As Graphics.EnumerateMetafileProc)

參數

metafile
Metafile

要列舉的 Metafile

destRect
RectangleF

RectangleF 結構,指定所繪製中繼檔的位置和大小。

srcRect
RectangleF

RectangleF 結構,指定與其左上角相關且要繪製之中繼檔部分。

srcUnit
GraphicsUnit

GraphicsUnit 列舉型別的成員,指定用來判斷由 srcRect 參數指定之矩形所包含之中繼檔部分的測量單位。

callback
Graphics.EnumerateMetafileProc

Graphics.EnumerateMetafileProc 委派,指定中繼檔記錄被傳送至的方法。

範例

如需程式碼範例,請參閱EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)

備註

這個方法會列舉指定元檔中包含的記錄。 每個記錄會個別傳送至 參數所 callback 指定的回呼方法。 一般而言,回呼方法會 PlayRecord 呼叫 方法以「播放」或繪製記錄。

如果回呼方法呼叫 PlayRecord,它必須藉由呼叫 PlayRecord 所列舉之特定 Metafile 的方法來執行此動作。

忽略參數所 srcRect 指定之矩形外的任何繪圖。

另請參閱

適用於

EnumerateMetafile(Metafile, Point, Rectangle, GraphicsUnit, Graphics+EnumerateMetafileProc, IntPtr)

來源:
Graphics.cs
來源:
Graphics.cs
來源:
Graphics.cs

將所選取矩形中的資料錄從 Metafile 一次一筆地傳送至回呼方法,以便在指定的點上顯示。

public:
 void EnumerateMetafile(System::Drawing::Imaging::Metafile ^ metafile, System::Drawing::Point destPoint, System::Drawing::Rectangle srcRect, System::Drawing::GraphicsUnit srcUnit, System::Drawing::Graphics::EnumerateMetafileProc ^ callback, IntPtr callbackData);
public void EnumerateMetafile (System.Drawing.Imaging.Metafile metafile, System.Drawing.Point destPoint, System.Drawing.Rectangle srcRect, System.Drawing.GraphicsUnit srcUnit, System.Drawing.Graphics.EnumerateMetafileProc callback, IntPtr callbackData);
member this.EnumerateMetafile : System.Drawing.Imaging.Metafile * System.Drawing.Point * System.Drawing.Rectangle * System.Drawing.GraphicsUnit * System.Drawing.Graphics.EnumerateMetafileProc * nativeint -> unit
Public Sub EnumerateMetafile (metafile As Metafile, destPoint As Point, srcRect As Rectangle, srcUnit As GraphicsUnit, callback As Graphics.EnumerateMetafileProc, callbackData As IntPtr)

參數

metafile
Metafile

要列舉的 Metafile

destPoint
Point

Point 結構,指定所繪製中繼檔的左上角位置。

srcRect
Rectangle

Rectangle 結構,指定與其左上角相關且要繪製之中繼檔部分。

srcUnit
GraphicsUnit

GraphicsUnit 列舉型別的成員,指定用來判斷由 srcRect 參數指定之矩形所包含之中繼檔部分的測量單位。

callback
Graphics.EnumerateMetafileProc

Graphics.EnumerateMetafileProc 委派,指定中繼檔記錄被傳送至的方法。

callbackData
IntPtr

nativeint

必要但被忽略的內部指標。 您可以為這個參數傳入 Zero

範例

如需程式碼範例,請參閱EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)

備註

這個方法會列舉指定元檔中包含的記錄。 每個記錄會個別傳送至 參數所 callback 指定的回呼方法。 一般而言,回呼方法會 PlayRecord 呼叫 方法以「播放」或繪製記錄。

如果回呼方法呼叫 PlayRecord,它必須藉由呼叫 PlayRecord 所列舉之特定 Metafile 的方法來執行此動作。

另請參閱

適用於

EnumerateMetafile(Metafile, Point[], Rectangle, GraphicsUnit, Graphics+EnumerateMetafileProc, IntPtr)

來源:
Graphics.cs
來源:
Graphics.cs
來源:
Graphics.cs

將所選取矩形中的資料錄從 Metafile 一次一筆地傳送至回呼方法,以便在指定的平行四邊形中顯示。

public:
 void EnumerateMetafile(System::Drawing::Imaging::Metafile ^ metafile, cli::array <System::Drawing::Point> ^ destPoints, System::Drawing::Rectangle srcRect, System::Drawing::GraphicsUnit srcUnit, System::Drawing::Graphics::EnumerateMetafileProc ^ callback, IntPtr callbackData);
public void EnumerateMetafile (System.Drawing.Imaging.Metafile metafile, System.Drawing.Point[] destPoints, System.Drawing.Rectangle srcRect, System.Drawing.GraphicsUnit srcUnit, System.Drawing.Graphics.EnumerateMetafileProc callback, IntPtr callbackData);
member this.EnumerateMetafile : System.Drawing.Imaging.Metafile * System.Drawing.Point[] * System.Drawing.Rectangle * System.Drawing.GraphicsUnit * System.Drawing.Graphics.EnumerateMetafileProc * nativeint -> unit
Public Sub EnumerateMetafile (metafile As Metafile, destPoints As Point(), srcRect As Rectangle, srcUnit As GraphicsUnit, callback As Graphics.EnumerateMetafileProc, callbackData As IntPtr)

參數

metafile
Metafile

要列舉的 Metafile

destPoints
Point[]

定義平行四邊型之三個 Point 結構的陣列,會決定所繪製中繼檔的大小和位置。

srcRect
Rectangle

Rectangle 結構,指定與其左上角相關且要繪製之中繼檔部分。

srcUnit
GraphicsUnit

GraphicsUnit 列舉型別的成員,指定用來判斷由 srcRect 參數指定之矩形所包含之中繼檔部分的測量單位。

callback
Graphics.EnumerateMetafileProc

Graphics.EnumerateMetafileProc 委派,指定中繼檔記錄被傳送至的方法。

callbackData
IntPtr

nativeint

必要但被忽略的內部指標。 您可以為這個參數傳入 Zero

範例

如需程式碼範例,請參閱EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)

備註

這個方法會列舉指定元檔中包含的記錄。 每個記錄會個別傳送至 參數所 callback 指定的回呼方法。 一般而言,回呼方法會 PlayRecord 呼叫 方法以「播放」或繪製記錄。

如果回呼方法呼叫 PlayRecord,它必須藉由呼叫 PlayRecord 所列舉之特定 Metafile 的方法來執行此動作。

參數 destPoints 會指定平行投影的三點。 這三 Point 個結構代表平行投影的左上角、右上角和左下角。 第四個點會從前三個推斷為形成平行投影。 繪製的元檔會縮放並切割,以符合平行投影。

忽略參數所 srcRect 指定之矩形外的任何繪圖。

另請參閱

適用於

EnumerateMetafile(Metafile, PointF[], RectangleF, GraphicsUnit, Graphics+EnumerateMetafileProc, IntPtr)

來源:
Graphics.cs
來源:
Graphics.cs
來源:
Graphics.cs

將所選取矩形中的資料錄從 Metafile 一次一筆地傳送至回呼方法,以便在指定的平行四邊形中顯示。

public:
 void EnumerateMetafile(System::Drawing::Imaging::Metafile ^ metafile, cli::array <System::Drawing::PointF> ^ destPoints, System::Drawing::RectangleF srcRect, System::Drawing::GraphicsUnit srcUnit, System::Drawing::Graphics::EnumerateMetafileProc ^ callback, IntPtr callbackData);
public void EnumerateMetafile (System.Drawing.Imaging.Metafile metafile, System.Drawing.PointF[] destPoints, System.Drawing.RectangleF srcRect, System.Drawing.GraphicsUnit srcUnit, System.Drawing.Graphics.EnumerateMetafileProc callback, IntPtr callbackData);
member this.EnumerateMetafile : System.Drawing.Imaging.Metafile * System.Drawing.PointF[] * System.Drawing.RectangleF * System.Drawing.GraphicsUnit * System.Drawing.Graphics.EnumerateMetafileProc * nativeint -> unit
Public Sub EnumerateMetafile (metafile As Metafile, destPoints As PointF(), srcRect As RectangleF, srcUnit As GraphicsUnit, callback As Graphics.EnumerateMetafileProc, callbackData As IntPtr)

參數

metafile
Metafile

要列舉的 Metafile

destPoints
PointF[]

定義平行四邊型之三個 PointF 結構的陣列,會決定所繪製中繼檔的大小和位置。

srcRect
RectangleF

RectangleF 結構,指定與其左上角相關且要繪製之中繼檔部分。

srcUnit
GraphicsUnit

GraphicsUnit 列舉型別的成員,指定用來判斷由 srcRect 參數指定之矩形所包含之中繼檔部分的測量單位。

callback
Graphics.EnumerateMetafileProc

Graphics.EnumerateMetafileProc 委派,指定中繼檔記錄被傳送至的方法。

callbackData
IntPtr

nativeint

必要但被忽略的內部指標。 您可以為這個參數傳入 Zero

範例

如需程式碼範例,請參閱EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)

備註

這個方法會列舉指定元檔中包含的記錄。 每個記錄會個別傳送至 參數所 callback 指定的回呼方法。 一般而言,回呼方法會 PlayRecord 呼叫 方法以「播放」或繪製記錄。

如果回呼方法呼叫 PlayRecord,它必須藉由呼叫 PlayRecord 所列舉之特定 Metafile 的方法來執行此動作。

參數 destPoints 會指定平行投影的三點。 這三 PointF 個結構代表平行投影的左上角、右上角和左下角。 第四個點會從前三個推斷為形成平行投影。 繪製的元檔會縮放並切割,以符合平行投影。

忽略參數所 srcRect 指定之矩形外的任何繪圖。

另請參閱

適用於

EnumerateMetafile(Metafile, PointF[], RectangleF, GraphicsUnit, Graphics+EnumerateMetafileProc)

來源:
Graphics.cs
來源:
Graphics.cs
來源:
Graphics.cs

將所選取矩形中的資料錄從 Metafile 一次一筆地傳送至回呼方法,以便在指定的平行四邊形中顯示。

public:
 void EnumerateMetafile(System::Drawing::Imaging::Metafile ^ metafile, cli::array <System::Drawing::PointF> ^ destPoints, System::Drawing::RectangleF srcRect, System::Drawing::GraphicsUnit srcUnit, System::Drawing::Graphics::EnumerateMetafileProc ^ callback);
public void EnumerateMetafile (System.Drawing.Imaging.Metafile metafile, System.Drawing.PointF[] destPoints, System.Drawing.RectangleF srcRect, System.Drawing.GraphicsUnit srcUnit, System.Drawing.Graphics.EnumerateMetafileProc callback);
member this.EnumerateMetafile : System.Drawing.Imaging.Metafile * System.Drawing.PointF[] * System.Drawing.RectangleF * System.Drawing.GraphicsUnit * System.Drawing.Graphics.EnumerateMetafileProc -> unit
Public Sub EnumerateMetafile (metafile As Metafile, destPoints As PointF(), srcRect As RectangleF, srcUnit As GraphicsUnit, callback As Graphics.EnumerateMetafileProc)

參數

metafile
Metafile

要列舉的 Metafile

destPoints
PointF[]

定義平行四邊型之三個 PointF 結構的陣列,會決定所繪製中繼檔的大小和位置。

srcRect
RectangleF

RectangleF 結構,指定與其左上角相關且要繪製之中繼檔部分。

srcUnit
GraphicsUnit

GraphicsUnit 列舉型別的成員,指定用來判斷由 srcRect 參數指定之矩形所包含之中繼檔部分的測量單位。

callback
Graphics.EnumerateMetafileProc

Graphics.EnumerateMetafileProc 委派,指定中繼檔記錄被傳送至的方法。

範例

如需程式碼範例,請參閱EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)

備註

這個方法會列舉指定元檔中包含的記錄。 每個記錄都會個別傳送至 參數所 callback 指定的回呼方法。 一般而言,回呼方法會 PlayRecord 呼叫 方法來「播放」或繪製記錄。

如果回呼方法呼叫 PlayRecord,則必須呼叫 PlayRecord 所列舉之特定 Metafile 方法來執行此動作。

參數 destPoints 會指定平行投影的三個點。 這三個 Point 結構代表平行投影的左上角、右上角和左下角。 第四個點是從前三個點推斷,以形成平行投影。 繪製的元檔會縮放並切割,以符合平行投影。

忽略參數所 srcRect 指定矩形外部的任何繪圖。

另請參閱

適用於

EnumerateMetafile(Metafile, RectangleF, RectangleF, GraphicsUnit, Graphics+EnumerateMetafileProc, IntPtr)

來源:
Graphics.cs
來源:
Graphics.cs
來源:
Graphics.cs

將所選取矩形中的資料錄從 Metafile 一次一筆地傳送至回呼方法,以便在指定的矩形中顯示。

public:
 void EnumerateMetafile(System::Drawing::Imaging::Metafile ^ metafile, System::Drawing::RectangleF destRect, System::Drawing::RectangleF srcRect, System::Drawing::GraphicsUnit srcUnit, System::Drawing::Graphics::EnumerateMetafileProc ^ callback, IntPtr callbackData);
public void EnumerateMetafile (System.Drawing.Imaging.Metafile metafile, System.Drawing.RectangleF destRect, System.Drawing.RectangleF srcRect, System.Drawing.GraphicsUnit srcUnit, System.Drawing.Graphics.EnumerateMetafileProc callback, IntPtr callbackData);
member this.EnumerateMetafile : System.Drawing.Imaging.Metafile * System.Drawing.RectangleF * System.Drawing.RectangleF * System.Drawing.GraphicsUnit * System.Drawing.Graphics.EnumerateMetafileProc * nativeint -> unit
Public Sub EnumerateMetafile (metafile As Metafile, destRect As RectangleF, srcRect As RectangleF, srcUnit As GraphicsUnit, callback As Graphics.EnumerateMetafileProc, callbackData As IntPtr)

參數

metafile
Metafile

要列舉的 Metafile

destRect
RectangleF

RectangleF 結構,指定所繪製中繼檔的位置和大小。

srcRect
RectangleF

RectangleF 結構,指定與其左上角相關且要繪製之中繼檔部分。

srcUnit
GraphicsUnit

GraphicsUnit 列舉型別的成員,指定用來判斷由 srcRect 參數指定之矩形所包含之中繼檔部分的測量單位。

callback
Graphics.EnumerateMetafileProc

Graphics.EnumerateMetafileProc 委派,指定中繼檔記錄被傳送至的方法。

callbackData
IntPtr

nativeint

必要但被忽略的內部指標。 您可以為這個參數傳入 Zero

範例

如需程式碼範例,請參閱EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)

備註

這個方法會列舉指定元檔中包含的記錄。 每個記錄都會個別傳送至 參數所callback 指定的回呼方法。 一般而言,回呼方法會 PlayRecord 呼叫 方法來「播放」或繪製記錄。

如果回呼方法呼叫 PlayRecord,則必須呼叫 PlayRecord 所列舉之特定 Metafile 方法來執行此動作。

忽略參數所 srcRect 指定矩形外部的任何繪圖。

另請參閱

適用於

EnumerateMetafile(Metafile, Point, Rectangle, GraphicsUnit, Graphics+EnumerateMetafileProc, IntPtr, ImageAttributes)

來源:
Graphics.cs
來源:
Graphics.cs
來源:
Graphics.cs

將選取之矩形中的記錄從 Metafile 一次一筆地傳送至回呼方法,以使用指定之影像屬性在指定的點上顯示。

public:
 void EnumerateMetafile(System::Drawing::Imaging::Metafile ^ metafile, System::Drawing::Point destPoint, System::Drawing::Rectangle srcRect, System::Drawing::GraphicsUnit unit, System::Drawing::Graphics::EnumerateMetafileProc ^ callback, IntPtr callbackData, System::Drawing::Imaging::ImageAttributes ^ imageAttr);
public void EnumerateMetafile (System.Drawing.Imaging.Metafile metafile, System.Drawing.Point destPoint, System.Drawing.Rectangle srcRect, System.Drawing.GraphicsUnit unit, System.Drawing.Graphics.EnumerateMetafileProc callback, IntPtr callbackData, System.Drawing.Imaging.ImageAttributes imageAttr);
public void EnumerateMetafile (System.Drawing.Imaging.Metafile metafile, System.Drawing.Point destPoint, System.Drawing.Rectangle srcRect, System.Drawing.GraphicsUnit unit, System.Drawing.Graphics.EnumerateMetafileProc callback, IntPtr callbackData, System.Drawing.Imaging.ImageAttributes? imageAttr);
member this.EnumerateMetafile : System.Drawing.Imaging.Metafile * System.Drawing.Point * System.Drawing.Rectangle * System.Drawing.GraphicsUnit * System.Drawing.Graphics.EnumerateMetafileProc * nativeint * System.Drawing.Imaging.ImageAttributes -> unit
Public Sub EnumerateMetafile (metafile As Metafile, destPoint As Point, srcRect As Rectangle, unit As GraphicsUnit, callback As Graphics.EnumerateMetafileProc, callbackData As IntPtr, imageAttr As ImageAttributes)

參數

metafile
Metafile

要列舉的 Metafile

destPoint
Point

Point 結構,指定所繪製中繼檔的左上角位置。

srcRect
Rectangle

Rectangle 結構,指定與其左上角相關且要繪製之中繼檔部分。

unit
GraphicsUnit

GraphicsUnit 列舉型別的成員,指定用來判斷由 srcRect 參數指定之矩形所包含之中繼檔部分的測量單位。

callback
Graphics.EnumerateMetafileProc

Graphics.EnumerateMetafileProc 委派,指定中繼檔記錄被傳送至的方法。

callbackData
IntPtr

nativeint

必要但被忽略的內部指標。 您可以為這個參數傳入 Zero

imageAttr
ImageAttributes

ImageAttributes,指定所繪製影像的影像屬性資訊。

範例

如需程式碼範例,請參閱EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)

備註

這個方法會列舉指定元檔中包含的記錄。 每個記錄都會個別傳送至 參數所 callback 指定的回呼方法。 一般而言,回呼方法會 PlayRecord 呼叫 方法來「播放」或繪製記錄。

如果回呼方法呼叫 PlayRecord,則必須呼叫 PlayRecord 所列舉之特定 Metafile 方法來執行此動作。

適用於

EnumerateMetafile(Metafile, Point[], Rectangle, GraphicsUnit, Graphics+EnumerateMetafileProc, IntPtr, ImageAttributes)

來源:
Graphics.cs
來源:
Graphics.cs
來源:
Graphics.cs

將選取之矩形中的記錄從 Metafile 一次一筆地傳送至回呼方法,以使用指定之影像屬性在指定的平行四邊形中顯示。

public:
 void EnumerateMetafile(System::Drawing::Imaging::Metafile ^ metafile, cli::array <System::Drawing::Point> ^ destPoints, System::Drawing::Rectangle srcRect, System::Drawing::GraphicsUnit unit, System::Drawing::Graphics::EnumerateMetafileProc ^ callback, IntPtr callbackData, System::Drawing::Imaging::ImageAttributes ^ imageAttr);
public void EnumerateMetafile (System.Drawing.Imaging.Metafile metafile, System.Drawing.Point[] destPoints, System.Drawing.Rectangle srcRect, System.Drawing.GraphicsUnit unit, System.Drawing.Graphics.EnumerateMetafileProc callback, IntPtr callbackData, System.Drawing.Imaging.ImageAttributes imageAttr);
public void EnumerateMetafile (System.Drawing.Imaging.Metafile metafile, System.Drawing.Point[] destPoints, System.Drawing.Rectangle srcRect, System.Drawing.GraphicsUnit unit, System.Drawing.Graphics.EnumerateMetafileProc callback, IntPtr callbackData, System.Drawing.Imaging.ImageAttributes? imageAttr);
member this.EnumerateMetafile : System.Drawing.Imaging.Metafile * System.Drawing.Point[] * System.Drawing.Rectangle * System.Drawing.GraphicsUnit * System.Drawing.Graphics.EnumerateMetafileProc * nativeint * System.Drawing.Imaging.ImageAttributes -> unit
Public Sub EnumerateMetafile (metafile As Metafile, destPoints As Point(), srcRect As Rectangle, unit As GraphicsUnit, callback As Graphics.EnumerateMetafileProc, callbackData As IntPtr, imageAttr As ImageAttributes)

參數

metafile
Metafile

要列舉的 Metafile

destPoints
Point[]

定義平行四邊型之三個 Point 結構的陣列,會決定所繪製中繼檔的大小和位置。

srcRect
Rectangle

Rectangle 結構,指定與其左上角相關且要繪製之中繼檔部分。

unit
GraphicsUnit

GraphicsUnit 列舉型別的成員,指定用來判斷由 srcRect 參數指定之矩形所包含之中繼檔部分的測量單位。

callback
Graphics.EnumerateMetafileProc

Graphics.EnumerateMetafileProc 委派,指定中繼檔記錄被傳送至的方法。

callbackData
IntPtr

nativeint

必要但被忽略的內部指標。 您可以為這個參數傳入 Zero

imageAttr
ImageAttributes

ImageAttributes,指定所繪製影像的影像屬性資訊。

範例

如需程式碼範例,請參閱EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)

備註

這個方法會列舉指定元檔中包含的記錄。 每個記錄都會個別傳送至 參數所 callback 指定的回呼方法。 一般而言,回呼方法會 PlayRecord 呼叫 方法來「播放」或繪製記錄。

如果回呼方法呼叫 PlayRecord,則必須呼叫 PlayRecord 所列舉之特定 Metafile 方法來執行此動作。

參數 destPoints 會指定平行投影的三個點。 這三個 Point 結構代表平行投影的左上角、右上角和左下角。 第四個點是從前三個點推斷,以形成平行投影。 繪製的元檔會縮放並切割,以符合平行投影。

忽略參數所 srcRect 指定矩形外部的任何繪圖。

參數所 imageAttr 指定的影像屬性會取代寫入元檔時所指定的影像屬性。

另請參閱

適用於

EnumerateMetafile(Metafile, PointF, RectangleF, GraphicsUnit, Graphics+EnumerateMetafileProc, IntPtr, ImageAttributes)

來源:
Graphics.cs
來源:
Graphics.cs
來源:
Graphics.cs

將選取之矩形中的記錄從 Metafile 一次一筆地傳送至回呼方法,以使用指定之影像屬性在指定的點上顯示。

public:
 void EnumerateMetafile(System::Drawing::Imaging::Metafile ^ metafile, System::Drawing::PointF destPoint, System::Drawing::RectangleF srcRect, System::Drawing::GraphicsUnit unit, System::Drawing::Graphics::EnumerateMetafileProc ^ callback, IntPtr callbackData, System::Drawing::Imaging::ImageAttributes ^ imageAttr);
public void EnumerateMetafile (System.Drawing.Imaging.Metafile metafile, System.Drawing.PointF destPoint, System.Drawing.RectangleF srcRect, System.Drawing.GraphicsUnit unit, System.Drawing.Graphics.EnumerateMetafileProc callback, IntPtr callbackData, System.Drawing.Imaging.ImageAttributes imageAttr);
public void EnumerateMetafile (System.Drawing.Imaging.Metafile metafile, System.Drawing.PointF destPoint, System.Drawing.RectangleF srcRect, System.Drawing.GraphicsUnit unit, System.Drawing.Graphics.EnumerateMetafileProc callback, IntPtr callbackData, System.Drawing.Imaging.ImageAttributes? imageAttr);
member this.EnumerateMetafile : System.Drawing.Imaging.Metafile * System.Drawing.PointF * System.Drawing.RectangleF * System.Drawing.GraphicsUnit * System.Drawing.Graphics.EnumerateMetafileProc * nativeint * System.Drawing.Imaging.ImageAttributes -> unit
Public Sub EnumerateMetafile (metafile As Metafile, destPoint As PointF, srcRect As RectangleF, unit As GraphicsUnit, callback As Graphics.EnumerateMetafileProc, callbackData As IntPtr, imageAttr As ImageAttributes)

參數

metafile
Metafile

要列舉的 Metafile

destPoint
PointF

PointF 結構,指定所繪製中繼檔的左上角位置。

srcRect
RectangleF

RectangleF 結構,指定與其左上角相關且要繪製之中繼檔部分。

unit
GraphicsUnit

GraphicsUnit 列舉型別的成員,指定用來判斷由 srcRect 參數指定之矩形所包含之中繼檔部分的測量單位。

callback
Graphics.EnumerateMetafileProc

Graphics.EnumerateMetafileProc 委派,指定中繼檔記錄被傳送至的方法。

callbackData
IntPtr

nativeint

必要但被忽略的內部指標。 您可以為這個參數傳入 Zero

imageAttr
ImageAttributes

ImageAttributes,指定所繪製影像的影像屬性資訊。

範例

如需程式碼範例,請參閱EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)

備註

這個方法會列舉指定元檔中包含的記錄。 每個記錄都會個別傳送至 參數所 callback 指定的回呼方法。 一般而言,回呼方法會 PlayRecord 呼叫 方法來「播放」或繪製記錄。

如果回呼方法呼叫 PlayRecord,則必須呼叫 PlayRecord 所列舉之特定 Metafile 方法來執行此動作。

忽略參數所 srcRect 指定矩形外部的任何繪圖。

參數所 imageAttr 指定的影像屬性會取代寫入元檔時所指定的影像屬性。

適用於

EnumerateMetafile(Metafile, PointF[], RectangleF, GraphicsUnit, Graphics+EnumerateMetafileProc, IntPtr, ImageAttributes)

來源:
Graphics.cs
來源:
Graphics.cs
來源:
Graphics.cs

將選取之矩形中的記錄從 Metafile 一次一筆地傳送至回呼方法,以使用指定之影像屬性在指定的平行四邊形中顯示。

public:
 void EnumerateMetafile(System::Drawing::Imaging::Metafile ^ metafile, cli::array <System::Drawing::PointF> ^ destPoints, System::Drawing::RectangleF srcRect, System::Drawing::GraphicsUnit unit, System::Drawing::Graphics::EnumerateMetafileProc ^ callback, IntPtr callbackData, System::Drawing::Imaging::ImageAttributes ^ imageAttr);
public void EnumerateMetafile (System.Drawing.Imaging.Metafile metafile, System.Drawing.PointF[] destPoints, System.Drawing.RectangleF srcRect, System.Drawing.GraphicsUnit unit, System.Drawing.Graphics.EnumerateMetafileProc callback, IntPtr callbackData, System.Drawing.Imaging.ImageAttributes imageAttr);
public void EnumerateMetafile (System.Drawing.Imaging.Metafile metafile, System.Drawing.PointF[] destPoints, System.Drawing.RectangleF srcRect, System.Drawing.GraphicsUnit unit, System.Drawing.Graphics.EnumerateMetafileProc callback, IntPtr callbackData, System.Drawing.Imaging.ImageAttributes? imageAttr);
member this.EnumerateMetafile : System.Drawing.Imaging.Metafile * System.Drawing.PointF[] * System.Drawing.RectangleF * System.Drawing.GraphicsUnit * System.Drawing.Graphics.EnumerateMetafileProc * nativeint * System.Drawing.Imaging.ImageAttributes -> unit
Public Sub EnumerateMetafile (metafile As Metafile, destPoints As PointF(), srcRect As RectangleF, unit As GraphicsUnit, callback As Graphics.EnumerateMetafileProc, callbackData As IntPtr, imageAttr As ImageAttributes)

參數

metafile
Metafile

要列舉的 Metafile

destPoints
PointF[]

定義平行四邊型之三個 PointF 結構的陣列,會決定所繪製中繼檔的大小和位置。

srcRect
RectangleF

RectangleF 結構,指定與其左上角相關且要繪製之中繼檔部分。

unit
GraphicsUnit

GraphicsUnit 列舉型別的成員,指定用來判斷由 srcRect 參數指定之矩形所包含之中繼檔部分的測量單位。

callback
Graphics.EnumerateMetafileProc

Graphics.EnumerateMetafileProc 委派,指定中繼檔記錄被傳送至的方法。

callbackData
IntPtr

nativeint

必要但被忽略的內部指標。 您可以為這個參數傳入 Zero

imageAttr
ImageAttributes

ImageAttributes,指定所繪製影像的影像屬性資訊。

範例

如需程式碼範例,請參閱EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)

備註

這個方法會列舉指定元檔中包含的記錄。 每個記錄都會個別傳送至 參數所 callback 指定的回呼方法。 一般而言,回呼方法會 PlayRecord 呼叫 方法來「播放」或繪製記錄。

如果回呼方法呼叫 PlayRecord,則必須呼叫 PlayRecord 所列舉之特定 Metafile 方法來執行此動作。

參數 destPoints 會指定平行投影的三個點。 這三個 PointF 結構代表平行投影的左上角、右上角和左下角。 第四個點是從前三個點推斷,以形成平行投影。 繪製的元檔會縮放並切割,以符合平行投影。

忽略參數所 srcRect 指定矩形外部的任何繪圖。

參數所 imageAttr 指定的影像屬性會取代寫入元檔時所指定的影像屬性。

另請參閱

適用於

EnumerateMetafile(Metafile, Rectangle, Rectangle, GraphicsUnit, Graphics+EnumerateMetafileProc, IntPtr, ImageAttributes)

來源:
Graphics.cs
來源:
Graphics.cs
來源:
Graphics.cs

將選取之矩形的記錄從 Metafile 一次一筆地傳送至回呼方法,以使用指定之影像屬性在指定的矩形中顯示。

public:
 void EnumerateMetafile(System::Drawing::Imaging::Metafile ^ metafile, System::Drawing::Rectangle destRect, System::Drawing::Rectangle srcRect, System::Drawing::GraphicsUnit unit, System::Drawing::Graphics::EnumerateMetafileProc ^ callback, IntPtr callbackData, System::Drawing::Imaging::ImageAttributes ^ imageAttr);
public void EnumerateMetafile (System.Drawing.Imaging.Metafile metafile, System.Drawing.Rectangle destRect, System.Drawing.Rectangle srcRect, System.Drawing.GraphicsUnit unit, System.Drawing.Graphics.EnumerateMetafileProc callback, IntPtr callbackData, System.Drawing.Imaging.ImageAttributes imageAttr);
public void EnumerateMetafile (System.Drawing.Imaging.Metafile metafile, System.Drawing.Rectangle destRect, System.Drawing.Rectangle srcRect, System.Drawing.GraphicsUnit unit, System.Drawing.Graphics.EnumerateMetafileProc callback, IntPtr callbackData, System.Drawing.Imaging.ImageAttributes? imageAttr);
member this.EnumerateMetafile : System.Drawing.Imaging.Metafile * System.Drawing.Rectangle * System.Drawing.Rectangle * System.Drawing.GraphicsUnit * System.Drawing.Graphics.EnumerateMetafileProc * nativeint * System.Drawing.Imaging.ImageAttributes -> unit
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)

參數

metafile
Metafile

要列舉的 Metafile

destRect
Rectangle

Rectangle 結構,指定所繪製中繼檔的位置和大小。

srcRect
Rectangle

Rectangle 結構,指定與其左上角相關且要繪製之中繼檔部分。

unit
GraphicsUnit

GraphicsUnit 列舉型別的成員,指定用來判斷由 srcRect 參數指定之矩形所包含之中繼檔部分的測量單位。

callback
Graphics.EnumerateMetafileProc

Graphics.EnumerateMetafileProc 委派,指定中繼檔記錄被傳送至的方法。

callbackData
IntPtr

nativeint

必要但被忽略的內部指標。 您可以為這個參數傳入 Zero

imageAttr
ImageAttributes

ImageAttributes,指定所繪製影像的影像屬性資訊。

範例

如需程式碼範例,請參閱EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)

備註

這個方法會列舉指定元檔中包含的記錄。 每個記錄會個別傳送至 參數所 callback 指定的回呼方法。 一般而言,回呼方法會 PlayRecord 呼叫 方法以「播放」或繪製記錄。

如果回呼方法呼叫 PlayRecord,它必須藉由呼叫 PlayRecord 所列舉之特定 Metafile 的方法來執行此動作。

忽略參數所 srcRect 指定之矩形外的任何繪圖。

參數所 imageAttr 指定的影像屬性會取代寫入元檔時所指定的屬性。

另請參閱

適用於

EnumerateMetafile(Metafile, RectangleF, RectangleF, GraphicsUnit, Graphics+EnumerateMetafileProc, IntPtr, ImageAttributes)

來源:
Graphics.cs
來源:
Graphics.cs
來源:
Graphics.cs

將選取之矩形的記錄從 Metafile 一次一筆地傳送至回呼方法,以使用指定之影像屬性在指定的矩形中顯示。

public:
 void EnumerateMetafile(System::Drawing::Imaging::Metafile ^ metafile, System::Drawing::RectangleF destRect, System::Drawing::RectangleF srcRect, System::Drawing::GraphicsUnit unit, System::Drawing::Graphics::EnumerateMetafileProc ^ callback, IntPtr callbackData, System::Drawing::Imaging::ImageAttributes ^ imageAttr);
public void EnumerateMetafile (System.Drawing.Imaging.Metafile metafile, System.Drawing.RectangleF destRect, System.Drawing.RectangleF srcRect, System.Drawing.GraphicsUnit unit, System.Drawing.Graphics.EnumerateMetafileProc callback, IntPtr callbackData, System.Drawing.Imaging.ImageAttributes imageAttr);
public void EnumerateMetafile (System.Drawing.Imaging.Metafile metafile, System.Drawing.RectangleF destRect, System.Drawing.RectangleF srcRect, System.Drawing.GraphicsUnit unit, System.Drawing.Graphics.EnumerateMetafileProc callback, IntPtr callbackData, System.Drawing.Imaging.ImageAttributes? imageAttr);
member this.EnumerateMetafile : System.Drawing.Imaging.Metafile * System.Drawing.RectangleF * System.Drawing.RectangleF * System.Drawing.GraphicsUnit * System.Drawing.Graphics.EnumerateMetafileProc * nativeint * System.Drawing.Imaging.ImageAttributes -> unit
Public Sub EnumerateMetafile (metafile As Metafile, destRect As RectangleF, srcRect As RectangleF, unit As GraphicsUnit, callback As Graphics.EnumerateMetafileProc, callbackData As IntPtr, imageAttr As ImageAttributes)

參數

metafile
Metafile

要列舉的 Metafile

destRect
RectangleF

RectangleF 結構,指定所繪製中繼檔的位置和大小。

srcRect
RectangleF

RectangleF 結構,指定與其左上角相關且要繪製之中繼檔部分。

unit
GraphicsUnit

GraphicsUnit 列舉型別的成員,指定用來判斷由 srcRect 參數指定之矩形所包含之中繼檔部分的測量單位。

callback
Graphics.EnumerateMetafileProc

Graphics.EnumerateMetafileProc 委派,指定中繼檔記錄被傳送至的方法。

callbackData
IntPtr

nativeint

必要但被忽略的內部指標。 您可以為這個參數傳入 Zero

imageAttr
ImageAttributes

ImageAttributes,指定所繪製影像的影像屬性資訊。

範例

如需程式碼範例,請參閱EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)

備註

這個方法會列舉指定元檔中包含的記錄。 每個記錄會個別傳送至 參數所 callback 指定的回呼方法。 一般而言,回呼方法會 PlayRecord 呼叫 方法以「播放」或繪製記錄。

如果回呼方法呼叫 PlayRecord,它必須藉由呼叫 PlayRecord 所列舉之特定 Metafile 的方法來執行此動作。

忽略參數所 srcRect 指定之矩形外的任何繪圖。

參數所 imageAttr 指定的影像屬性會取代寫入元檔時所指定的屬性。

另請參閱

適用於

EnumerateMetafile(Metafile, Rectangle, Rectangle, GraphicsUnit, Graphics+EnumerateMetafileProc, IntPtr)

來源:
Graphics.cs
來源:
Graphics.cs
來源:
Graphics.cs

將所選取矩形中的資料錄從 Metafile 一次一筆地傳送至回呼方法,以便在指定的矩形中顯示。

public:
 void EnumerateMetafile(System::Drawing::Imaging::Metafile ^ metafile, System::Drawing::Rectangle destRect, System::Drawing::Rectangle srcRect, System::Drawing::GraphicsUnit srcUnit, System::Drawing::Graphics::EnumerateMetafileProc ^ callback, IntPtr callbackData);
public void EnumerateMetafile (System.Drawing.Imaging.Metafile metafile, System.Drawing.Rectangle destRect, System.Drawing.Rectangle srcRect, System.Drawing.GraphicsUnit srcUnit, System.Drawing.Graphics.EnumerateMetafileProc callback, IntPtr callbackData);
member this.EnumerateMetafile : System.Drawing.Imaging.Metafile * System.Drawing.Rectangle * System.Drawing.Rectangle * System.Drawing.GraphicsUnit * System.Drawing.Graphics.EnumerateMetafileProc * nativeint -> unit
Public Sub EnumerateMetafile (metafile As Metafile, destRect As Rectangle, srcRect As Rectangle, srcUnit As GraphicsUnit, callback As Graphics.EnumerateMetafileProc, callbackData As IntPtr)

參數

metafile
Metafile

要列舉的 Metafile

destRect
Rectangle

Rectangle 結構,指定所繪製中繼檔的位置和大小。

srcRect
Rectangle

Rectangle 結構,指定與其左上角相關且要繪製之中繼檔部分。

srcUnit
GraphicsUnit

GraphicsUnit 列舉型別的成員,指定用來判斷由 srcRect 參數指定之矩形所包含之中繼檔部分的測量單位。

callback
Graphics.EnumerateMetafileProc

Graphics.EnumerateMetafileProc 委派,指定中繼檔記錄被傳送至的方法。

callbackData
IntPtr

nativeint

必要但被忽略的內部指標。 您可以為這個參數傳入 Zero

範例

如需程式碼範例,請參閱EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)

備註

這個方法會列舉指定元檔中包含的記錄。 每個記錄會個別傳送至 參數所 callback 指定的回呼方法。 一般而言,回呼方法會 PlayRecord 呼叫 方法以「播放」或繪製記錄。

如果回呼方法呼叫 PlayRecord,它必須藉由呼叫 PlayRecord 所列舉之特定 Metafile 的方法來執行此動作。

忽略參數所 srcRect 指定之矩形外的任何繪圖。

另請參閱

適用於

EnumerateMetafile(Metafile, PointF[], Graphics+EnumerateMetafileProc, IntPtr, ImageAttributes)

來源:
Graphics.cs
來源:
Graphics.cs
來源:
Graphics.cs

將指定之 Metafile 中的記錄一次一筆地傳送至回呼方法,以使用指定之影像屬性在指定的平行四邊形中顯示。

public:
 void EnumerateMetafile(System::Drawing::Imaging::Metafile ^ metafile, cli::array <System::Drawing::PointF> ^ destPoints, System::Drawing::Graphics::EnumerateMetafileProc ^ callback, IntPtr callbackData, System::Drawing::Imaging::ImageAttributes ^ imageAttr);
public void EnumerateMetafile (System.Drawing.Imaging.Metafile metafile, System.Drawing.PointF[] destPoints, System.Drawing.Graphics.EnumerateMetafileProc callback, IntPtr callbackData, System.Drawing.Imaging.ImageAttributes imageAttr);
public void EnumerateMetafile (System.Drawing.Imaging.Metafile metafile, System.Drawing.PointF[] destPoints, System.Drawing.Graphics.EnumerateMetafileProc callback, IntPtr callbackData, System.Drawing.Imaging.ImageAttributes? imageAttr);
member this.EnumerateMetafile : System.Drawing.Imaging.Metafile * System.Drawing.PointF[] * System.Drawing.Graphics.EnumerateMetafileProc * nativeint * System.Drawing.Imaging.ImageAttributes -> unit
Public Sub EnumerateMetafile (metafile As Metafile, destPoints As PointF(), callback As Graphics.EnumerateMetafileProc, callbackData As IntPtr, imageAttr As ImageAttributes)

參數

metafile
Metafile

要列舉的 Metafile

destPoints
PointF[]

定義平行四邊型之三個 PointF 結構的陣列,會決定所繪製中繼檔的大小和位置。

callback
Graphics.EnumerateMetafileProc

Graphics.EnumerateMetafileProc 委派,指定中繼檔記錄被傳送至的方法。

callbackData
IntPtr

nativeint

必要但被忽略的內部指標。 您可以為這個參數傳入 Zero

imageAttr
ImageAttributes

ImageAttributes,指定所繪製影像的影像屬性資訊。

範例

如需程式碼範例,請參閱EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)

備註

這個方法會列舉指定元檔中包含的記錄。 每個記錄會個別傳送至 參數所 callback 指定的回呼方法。 一般而言,回呼方法會 PlayRecord 呼叫 方法以「播放」或繪製記錄。

如果回呼方法呼叫 PlayRecord,它必須藉由呼叫 PlayRecord 所列舉之特定 Metafile 的方法來執行此動作。

參數 destPoints 會指定平行投影的三點。 這三 PointF 個結構代表平行投影的左上角、右上角和左下角。 第四個點會從前三個推斷為形成平行投影。 繪製的元檔會縮放並切割,以符合平行投影。

參數所 imageAttr 指定的影像屬性會取代寫入元檔時所指定的屬性。

另請參閱

適用於

EnumerateMetafile(Metafile, Point, Rectangle, GraphicsUnit, Graphics+EnumerateMetafileProc)

來源:
Graphics.cs
來源:
Graphics.cs
來源:
Graphics.cs

將所選取矩形中的資料錄從 Metafile 一次一筆地傳送至回呼方法,以便在指定的點上顯示。

public:
 void EnumerateMetafile(System::Drawing::Imaging::Metafile ^ metafile, System::Drawing::Point destPoint, System::Drawing::Rectangle srcRect, System::Drawing::GraphicsUnit srcUnit, System::Drawing::Graphics::EnumerateMetafileProc ^ callback);
public void EnumerateMetafile (System.Drawing.Imaging.Metafile metafile, System.Drawing.Point destPoint, System.Drawing.Rectangle srcRect, System.Drawing.GraphicsUnit srcUnit, System.Drawing.Graphics.EnumerateMetafileProc callback);
member this.EnumerateMetafile : System.Drawing.Imaging.Metafile * System.Drawing.Point * System.Drawing.Rectangle * System.Drawing.GraphicsUnit * System.Drawing.Graphics.EnumerateMetafileProc -> unit
Public Sub EnumerateMetafile (metafile As Metafile, destPoint As Point, srcRect As Rectangle, srcUnit As GraphicsUnit, callback As Graphics.EnumerateMetafileProc)

參數

metafile
Metafile

要列舉的 Metafile

destPoint
Point

Point 結構,指定所繪製中繼檔的左上角位置。

srcRect
Rectangle

Rectangle 結構,指定與其左上角相關且要繪製之中繼檔部分。

srcUnit
GraphicsUnit

GraphicsUnit 列舉型別的成員,指定用來判斷由 srcRect 參數指定之矩形所包含之中繼檔部分的測量單位。

callback
Graphics.EnumerateMetafileProc

Graphics.EnumerateMetafileProc 委派,指定中繼檔記錄被傳送至的方法。

範例

如需程式碼範例,請參閱EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)

備註

這個方法會列舉指定元檔中包含的記錄。 每個記錄會個別傳送至 參數所 callback 指定的回呼方法。 一般而言,回呼方法會 PlayRecord 呼叫 方法以「播放」或繪製記錄。

如果回呼方法呼叫 PlayRecord,它必須藉由呼叫 PlayRecord 所列舉之特定 Metafile 的方法來執行此動作。

適用於

EnumerateMetafile(Metafile, PointF, Graphics+EnumerateMetafileProc, IntPtr, ImageAttributes)

來源:
Graphics.cs
來源:
Graphics.cs
來源:
Graphics.cs

將指定之 Metafile 中的記錄一次一筆地傳送至回呼方法,以使用指定之影像屬性在指定的點上顯示。

public:
 void EnumerateMetafile(System::Drawing::Imaging::Metafile ^ metafile, System::Drawing::PointF destPoint, System::Drawing::Graphics::EnumerateMetafileProc ^ callback, IntPtr callbackData, System::Drawing::Imaging::ImageAttributes ^ imageAttr);
public void EnumerateMetafile (System.Drawing.Imaging.Metafile metafile, System.Drawing.PointF destPoint, System.Drawing.Graphics.EnumerateMetafileProc callback, IntPtr callbackData, System.Drawing.Imaging.ImageAttributes imageAttr);
public void EnumerateMetafile (System.Drawing.Imaging.Metafile metafile, System.Drawing.PointF destPoint, System.Drawing.Graphics.EnumerateMetafileProc callback, IntPtr callbackData, System.Drawing.Imaging.ImageAttributes? imageAttr);
member this.EnumerateMetafile : System.Drawing.Imaging.Metafile * System.Drawing.PointF * System.Drawing.Graphics.EnumerateMetafileProc * nativeint * System.Drawing.Imaging.ImageAttributes -> unit
Public Sub EnumerateMetafile (metafile As Metafile, destPoint As PointF, callback As Graphics.EnumerateMetafileProc, callbackData As IntPtr, imageAttr As ImageAttributes)

參數

metafile
Metafile

要列舉的 Metafile

destPoint
PointF

PointF 結構,指定所繪製中繼檔的左上角位置。

callback
Graphics.EnumerateMetafileProc

Graphics.EnumerateMetafileProc 委派,指定中繼檔記錄被傳送至的方法。

callbackData
IntPtr

nativeint

必要但被忽略的內部指標。 您可以為這個參數傳入 Zero

imageAttr
ImageAttributes

ImageAttributes,指定所繪製影像的影像屬性資訊。

範例

如需程式碼範例,請參閱EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)

備註

這個方法會列舉指定元檔中包含的記錄。 每個記錄會個別傳送至 參數所 callback 指定的回呼方法。 一般而言,回呼方法會 PlayRecord 呼叫 方法以「播放」或繪製記錄。

如果回呼方法呼叫 PlayRecord,它必須藉由呼叫所列舉之特定 Metafile 的方法來執行此動作。

參數所 imageAttr 指定的影像屬性會取代寫入元檔時所指定的屬性。

另請參閱

適用於

EnumerateMetafile(Metafile, Point[], Graphics+EnumerateMetafileProc)

來源:
Graphics.cs
來源:
Graphics.cs
來源:
Graphics.cs

將所指定 Metafile 中的資料錄一次一筆地傳送至回呼方法,以便在指定的平行四邊形中顯示。

public:
 void EnumerateMetafile(System::Drawing::Imaging::Metafile ^ metafile, cli::array <System::Drawing::Point> ^ destPoints, System::Drawing::Graphics::EnumerateMetafileProc ^ callback);
public void EnumerateMetafile (System.Drawing.Imaging.Metafile metafile, System.Drawing.Point[] destPoints, System.Drawing.Graphics.EnumerateMetafileProc callback);
member this.EnumerateMetafile : System.Drawing.Imaging.Metafile * System.Drawing.Point[] * System.Drawing.Graphics.EnumerateMetafileProc -> unit
Public Sub EnumerateMetafile (metafile As Metafile, destPoints As Point(), callback As Graphics.EnumerateMetafileProc)

參數

metafile
Metafile

要列舉的 Metafile

destPoints
Point[]

定義平行四邊型之三個 Point 結構的陣列,會決定所繪製中繼檔的大小和位置。

callback
Graphics.EnumerateMetafileProc

Graphics.EnumerateMetafileProc 委派,指定中繼檔記錄被傳送至的方法。

範例

如需程式碼範例,請參閱EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)

備註

這個方法會列舉指定元檔中包含的記錄。 每個記錄會個別傳送至 參數所 callback 指定的回呼方法。 一般而言,回呼方法會 PlayRecord 呼叫 方法以「播放」或繪製記錄。

如果回呼方法呼叫 PlayRecord,它必須藉由呼叫 PlayRecord 所列舉之特定 Metafile 的方法來執行此動作。

另請參閱

適用於

EnumerateMetafile(Metafile, PointF, Graphics+EnumerateMetafileProc)

來源:
Graphics.cs
來源:
Graphics.cs
來源:
Graphics.cs

將所指定 Metafile 中的資料錄一次一筆地傳送至回呼方法,以便在指定的點上顯示。

public:
 void EnumerateMetafile(System::Drawing::Imaging::Metafile ^ metafile, System::Drawing::PointF destPoint, System::Drawing::Graphics::EnumerateMetafileProc ^ callback);
public void EnumerateMetafile (System.Drawing.Imaging.Metafile metafile, System.Drawing.PointF destPoint, System.Drawing.Graphics.EnumerateMetafileProc callback);
member this.EnumerateMetafile : System.Drawing.Imaging.Metafile * System.Drawing.PointF * System.Drawing.Graphics.EnumerateMetafileProc -> unit
Public Sub EnumerateMetafile (metafile As Metafile, destPoint As PointF, callback As Graphics.EnumerateMetafileProc)

參數

metafile
Metafile

要列舉的 Metafile

destPoint
PointF

PointF 結構,指定所繪製中繼檔的左上角位置。

callback
Graphics.EnumerateMetafileProc

Graphics.EnumerateMetafileProc 委派,指定中繼檔記錄被傳送至的方法。

範例

如需程式碼範例,請參閱EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)

備註

這個方法會列舉指定元檔中包含的記錄。 每個記錄會個別傳送至 參數所 callback 指定的回呼方法。 一般而言,回呼方法會 PlayRecord 呼叫 方法以「播放」或繪製記錄。

如果回呼方法呼叫 PlayRecord,它必須藉由呼叫 PlayRecord 所列舉之特定 Metafile 的方法來執行此動作。

另請參閱

適用於

EnumerateMetafile(Metafile, PointF[], Graphics+EnumerateMetafileProc)

來源:
Graphics.cs
來源:
Graphics.cs
來源:
Graphics.cs

將所指定 Metafile 中的資料錄一次一筆地傳送至回呼方法,以便在指定的平行四邊形中顯示。

public:
 void EnumerateMetafile(System::Drawing::Imaging::Metafile ^ metafile, cli::array <System::Drawing::PointF> ^ destPoints, System::Drawing::Graphics::EnumerateMetafileProc ^ callback);
public void EnumerateMetafile (System.Drawing.Imaging.Metafile metafile, System.Drawing.PointF[] destPoints, System.Drawing.Graphics.EnumerateMetafileProc callback);
member this.EnumerateMetafile : System.Drawing.Imaging.Metafile * System.Drawing.PointF[] * System.Drawing.Graphics.EnumerateMetafileProc -> unit
Public Sub EnumerateMetafile (metafile As Metafile, destPoints As PointF(), callback As Graphics.EnumerateMetafileProc)

參數

metafile
Metafile

要列舉的 Metafile

destPoints
PointF[]

定義平行四邊型之三個 PointF 結構的陣列,會決定所繪製中繼檔的大小和位置。

callback
Graphics.EnumerateMetafileProc

Graphics.EnumerateMetafileProc 委派,指定中繼檔記錄被傳送至的方法。

範例

如需程式碼範例,請參閱EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)

備註

這個方法會列舉指定元檔中包含的記錄。 每個記錄會個別傳送至 參數所 callback 指定的回呼方法。 一般而言,回呼方法會 PlayRecord 呼叫 方法以「播放」或繪製記錄。

如果回呼方法呼叫 PlayRecord,它必須藉由呼叫 PlayRecord 所列舉之特定 Metafile 的方法來執行此動作。

參數 destPoints 會指定平行投影的三點。 這三 PointF 個結構代表平行投影的左上角、右上角和左下角。 第四個點會從前三個推斷為形成平行投影。 繪製的元檔會縮放並切割,以符合平行投影。

另請參閱

適用於

EnumerateMetafile(Metafile, Rectangle, Graphics+EnumerateMetafileProc)

來源:
Graphics.cs
來源:
Graphics.cs
來源:
Graphics.cs

將所指定 Metafile 中的資料錄一次一筆地傳送至回呼方法,以便在指定的矩形中顯示。

public:
 void EnumerateMetafile(System::Drawing::Imaging::Metafile ^ metafile, System::Drawing::Rectangle destRect, System::Drawing::Graphics::EnumerateMetafileProc ^ callback);
public void EnumerateMetafile (System.Drawing.Imaging.Metafile metafile, System.Drawing.Rectangle destRect, System.Drawing.Graphics.EnumerateMetafileProc callback);
member this.EnumerateMetafile : System.Drawing.Imaging.Metafile * System.Drawing.Rectangle * System.Drawing.Graphics.EnumerateMetafileProc -> unit
Public Sub EnumerateMetafile (metafile As Metafile, destRect As Rectangle, callback As Graphics.EnumerateMetafileProc)

參數

metafile
Metafile

要列舉的 Metafile

destRect
Rectangle

Rectangle 結構,指定所繪製中繼檔的位置和大小。

callback
Graphics.EnumerateMetafileProc

Graphics.EnumerateMetafileProc 委派,指定中繼檔記錄被傳送至的方法。

範例

如需程式碼範例,請參閱EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)

備註

這個方法會列舉指定元檔中包含的記錄。 每個記錄會個別傳送至 參數所 callback 指定的回呼方法。 一般而言,回呼方法會 PlayRecord 呼叫 方法以「播放」或繪製記錄。

如果回呼方法呼叫 PlayRecord,它必須藉由呼叫 PlayRecord 所列舉之特定 Metafile 的方法來執行此動作。

另請參閱

適用於

EnumerateMetafile(Metafile, RectangleF, Graphics+EnumerateMetafileProc)

來源:
Graphics.cs
來源:
Graphics.cs
來源:
Graphics.cs

將所指定 Metafile 中的資料錄一次一筆地傳送至回呼方法,以便在指定的矩形中顯示。

public:
 void EnumerateMetafile(System::Drawing::Imaging::Metafile ^ metafile, System::Drawing::RectangleF destRect, System::Drawing::Graphics::EnumerateMetafileProc ^ callback);
public void EnumerateMetafile (System.Drawing.Imaging.Metafile metafile, System.Drawing.RectangleF destRect, System.Drawing.Graphics.EnumerateMetafileProc callback);
member this.EnumerateMetafile : System.Drawing.Imaging.Metafile * System.Drawing.RectangleF * System.Drawing.Graphics.EnumerateMetafileProc -> unit
Public Sub EnumerateMetafile (metafile As Metafile, destRect As RectangleF, callback As Graphics.EnumerateMetafileProc)

參數

metafile
Metafile

要列舉的 Metafile

destRect
RectangleF

RectangleF 結構,指定所繪製中繼檔的位置和大小。

callback
Graphics.EnumerateMetafileProc

Graphics.EnumerateMetafileProc 委派,指定中繼檔記錄被傳送至的方法。

範例

如需程式碼範例,請參閱EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)

備註

這個方法會列舉指定元檔中包含的記錄。 每個記錄會個別傳送至 參數所 callback 指定的回呼方法。 一般而言,回呼方法會 PlayRecord 呼叫 方法以「播放」或繪製記錄。

如果回呼方法呼叫 PlayRecord,它必須藉由呼叫 PlayRecord 所列舉之特定 Metafile 的方法來執行此動作。

另請參閱

適用於

EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc, IntPtr)

來源:
Graphics.cs
來源:
Graphics.cs
來源:
Graphics.cs

將所指定 Metafile 中的資料錄一次一筆地傳送至回呼方法,以便在指定的點上顯示。

public:
 void EnumerateMetafile(System::Drawing::Imaging::Metafile ^ metafile, System::Drawing::Point destPoint, System::Drawing::Graphics::EnumerateMetafileProc ^ callback, IntPtr callbackData);
public void EnumerateMetafile (System.Drawing.Imaging.Metafile metafile, System.Drawing.Point destPoint, System.Drawing.Graphics.EnumerateMetafileProc callback, IntPtr callbackData);
member this.EnumerateMetafile : System.Drawing.Imaging.Metafile * System.Drawing.Point * System.Drawing.Graphics.EnumerateMetafileProc * nativeint -> unit
Public Sub EnumerateMetafile (metafile As Metafile, destPoint As Point, callback As Graphics.EnumerateMetafileProc, callbackData As IntPtr)

參數

metafile
Metafile

要列舉的 Metafile

destPoint
Point

Point 結構,指定所繪製中繼檔的左上角位置。

callback
Graphics.EnumerateMetafileProc

Graphics.EnumerateMetafileProc 委派,指定中繼檔記錄被傳送至的方法。

callbackData
IntPtr

nativeint

必要但被忽略的內部指標。 您可以為這個參數傳入 Zero

範例

如需程式碼範例,請參閱EnumerateMetafile

備註

這個方法會列舉指定元檔中包含的記錄。 每個記錄會個別傳送至 參數所 callback 指定的回呼方法。 一般而言,回呼方法會 PlayRecord 呼叫 方法以「播放」或繪製記錄。

如果回呼方法呼叫 PlayRecord,它必須藉由呼叫 PlayRecord 所列舉之特定 Metafile 的方法來執行此動作。

另請參閱

適用於

EnumerateMetafile(Metafile, Point[], Graphics+EnumerateMetafileProc, IntPtr)

來源:
Graphics.cs
來源:
Graphics.cs
來源:
Graphics.cs

將所指定 Metafile 中的資料錄一次一筆地傳送至回呼方法,以便在指定的平行四邊形中顯示。

public:
 void EnumerateMetafile(System::Drawing::Imaging::Metafile ^ metafile, cli::array <System::Drawing::Point> ^ destPoints, System::Drawing::Graphics::EnumerateMetafileProc ^ callback, IntPtr callbackData);
public void EnumerateMetafile (System.Drawing.Imaging.Metafile metafile, System.Drawing.Point[] destPoints, System.Drawing.Graphics.EnumerateMetafileProc callback, IntPtr callbackData);
member this.EnumerateMetafile : System.Drawing.Imaging.Metafile * System.Drawing.Point[] * System.Drawing.Graphics.EnumerateMetafileProc * nativeint -> unit
Public Sub EnumerateMetafile (metafile As Metafile, destPoints As Point(), callback As Graphics.EnumerateMetafileProc, callbackData As IntPtr)

參數

metafile
Metafile

要列舉的 Metafile

destPoints
Point[]

定義平行四邊型之三個 Point 結構的陣列,會決定所繪製中繼檔的大小和位置。

callback
Graphics.EnumerateMetafileProc

Graphics.EnumerateMetafileProc 委派,指定中繼檔記錄被傳送至的方法。

callbackData
IntPtr

nativeint

必要但被忽略的內部指標。 您可以為這個參數傳入 Zero

範例

如需程式碼範例,請參閱EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)

備註

這個方法會列舉指定元檔中包含的記錄。 每個記錄會個別傳送至 參數所 callback 指定的回呼方法。 一般而言,回呼方法會 PlayRecord 呼叫 方法以「播放」或繪製記錄。

如果回呼方法呼叫 PlayRecord,它必須藉由呼叫 PlayRecord 所列舉之特定 Metafile 的方法來執行此動作。

適用於

EnumerateMetafile(Metafile, PointF, Graphics+EnumerateMetafileProc, IntPtr)

來源:
Graphics.cs
來源:
Graphics.cs
來源:
Graphics.cs

將所指定 Metafile 中的資料錄一次一筆地傳送至回呼方法,以便在指定的點上顯示。

public:
 void EnumerateMetafile(System::Drawing::Imaging::Metafile ^ metafile, System::Drawing::PointF destPoint, System::Drawing::Graphics::EnumerateMetafileProc ^ callback, IntPtr callbackData);
public void EnumerateMetafile (System.Drawing.Imaging.Metafile metafile, System.Drawing.PointF destPoint, System.Drawing.Graphics.EnumerateMetafileProc callback, IntPtr callbackData);
member this.EnumerateMetafile : System.Drawing.Imaging.Metafile * System.Drawing.PointF * System.Drawing.Graphics.EnumerateMetafileProc * nativeint -> unit
Public Sub EnumerateMetafile (metafile As Metafile, destPoint As PointF, callback As Graphics.EnumerateMetafileProc, callbackData As IntPtr)

參數

metafile
Metafile

要列舉的 Metafile

destPoint
PointF

PointF 結構,指定所繪製中繼檔的左上角位置。

callback
Graphics.EnumerateMetafileProc

Graphics.EnumerateMetafileProc 委派,指定中繼檔記錄被傳送至的方法。

callbackData
IntPtr

nativeint

必要但被忽略的內部指標。 您可以為這個參數傳入 Zero

範例

如需程式碼範例,請參閱EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)

備註

這個方法會列舉指定元檔中包含的記錄。 每個記錄會個別傳送至 參數所 callback 指定的回呼方法。 一般而言,回呼方法會 PlayRecord 呼叫 方法以「播放」或繪製記錄。

如果回呼方法呼叫 PlayRecord,它必須藉由呼叫 PlayRecord 所列舉之特定 Metafile 的方法來執行此動作。

另請參閱

適用於

EnumerateMetafile(Metafile, PointF[], Graphics+EnumerateMetafileProc, IntPtr)

來源:
Graphics.cs
來源:
Graphics.cs
來源:
Graphics.cs

將所指定 Metafile 中的資料錄一次一筆地傳送至回呼方法,以便在指定的平行四邊形中顯示。

public:
 void EnumerateMetafile(System::Drawing::Imaging::Metafile ^ metafile, cli::array <System::Drawing::PointF> ^ destPoints, System::Drawing::Graphics::EnumerateMetafileProc ^ callback, IntPtr callbackData);
public void EnumerateMetafile (System.Drawing.Imaging.Metafile metafile, System.Drawing.PointF[] destPoints, System.Drawing.Graphics.EnumerateMetafileProc callback, IntPtr callbackData);
member this.EnumerateMetafile : System.Drawing.Imaging.Metafile * System.Drawing.PointF[] * System.Drawing.Graphics.EnumerateMetafileProc * nativeint -> unit
Public Sub EnumerateMetafile (metafile As Metafile, destPoints As PointF(), callback As Graphics.EnumerateMetafileProc, callbackData As IntPtr)

參數

metafile
Metafile

要列舉的 Metafile

destPoints
PointF[]

定義平行四邊型之三個 PointF 結構的陣列,會決定所繪製中繼檔的大小和位置。

callback
Graphics.EnumerateMetafileProc

Graphics.EnumerateMetafileProc 委派,指定中繼檔記錄被傳送至的方法。

callbackData
IntPtr

nativeint

必要但被忽略的內部指標。 您可以為這個參數傳入 Zero

範例

如需程式碼範例,請參閱EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)

備註

這個方法會列舉指定元檔中包含的記錄。 每個記錄會個別傳送至 參數所 callback 指定的回呼方法。 一般而言,回呼方法會 PlayRecord 呼叫 方法以「播放」或繪製記錄。

如果回呼方法呼叫 PlayRecord,它必須藉由呼叫 PlayRecord 所列舉之特定 Metafile 的方法來執行此動作。

參數 destPoints 會指定平行投影的三點。 這三 PointF 個結構代表平行投影的左上角、右上角和左下角。 第四個點會從前三個推斷為形成平行投影。 繪製的元檔會縮放並切割,以符合平行投影。

另請參閱

適用於

EnumerateMetafile(Metafile, Rectangle, Graphics+EnumerateMetafileProc, IntPtr)

來源:
Graphics.cs
來源:
Graphics.cs
來源:
Graphics.cs

將所指定 Metafile 中的資料錄一次一筆地傳送至回呼方法,以便在指定的矩形中顯示。

public:
 void EnumerateMetafile(System::Drawing::Imaging::Metafile ^ metafile, System::Drawing::Rectangle destRect, System::Drawing::Graphics::EnumerateMetafileProc ^ callback, IntPtr callbackData);
public void EnumerateMetafile (System.Drawing.Imaging.Metafile metafile, System.Drawing.Rectangle destRect, System.Drawing.Graphics.EnumerateMetafileProc callback, IntPtr callbackData);
member this.EnumerateMetafile : System.Drawing.Imaging.Metafile * System.Drawing.Rectangle * System.Drawing.Graphics.EnumerateMetafileProc * nativeint -> unit
Public Sub EnumerateMetafile (metafile As Metafile, destRect As Rectangle, callback As Graphics.EnumerateMetafileProc, callbackData As IntPtr)

參數

metafile
Metafile

要列舉的 Metafile

destRect
Rectangle

Rectangle 結構,指定所繪製中繼檔的位置和大小。

callback
Graphics.EnumerateMetafileProc

Graphics.EnumerateMetafileProc 委派,指定中繼檔記錄被傳送至的方法。

callbackData
IntPtr

nativeint

必要但被忽略的內部指標。 您可以為這個參數傳入 Zero

範例

如需程式碼範例,請參閱EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)

備註

這個方法會列舉指定元檔中包含的記錄。 每個記錄會個別傳送至 參數所 callback 指定的回呼方法。 一般而言,回呼方法會 PlayRecord 呼叫 方法以「播放」或繪製記錄。

如果回呼方法呼叫 PlayRecord,它必須藉由呼叫 PlayRecord 所列舉之特定 Metafile 的方法來執行此動作。

另請參閱

適用於

EnumerateMetafile(Metafile, RectangleF, Graphics+EnumerateMetafileProc, IntPtr)

來源:
Graphics.cs
來源:
Graphics.cs
來源:
Graphics.cs

將所指定 Metafile 中的資料錄一次一筆地傳送至回呼方法,以便在指定的矩形中顯示。

public:
 void EnumerateMetafile(System::Drawing::Imaging::Metafile ^ metafile, System::Drawing::RectangleF destRect, System::Drawing::Graphics::EnumerateMetafileProc ^ callback, IntPtr callbackData);
public void EnumerateMetafile (System.Drawing.Imaging.Metafile metafile, System.Drawing.RectangleF destRect, System.Drawing.Graphics.EnumerateMetafileProc callback, IntPtr callbackData);
member this.EnumerateMetafile : System.Drawing.Imaging.Metafile * System.Drawing.RectangleF * System.Drawing.Graphics.EnumerateMetafileProc * nativeint -> unit
Public Sub EnumerateMetafile (metafile As Metafile, destRect As RectangleF, callback As Graphics.EnumerateMetafileProc, callbackData As IntPtr)

參數

metafile
Metafile

要列舉的 Metafile

destRect
RectangleF

RectangleF 結構,指定所繪製中繼檔的位置和大小。

callback
Graphics.EnumerateMetafileProc

Graphics.EnumerateMetafileProc 委派,指定中繼檔記錄被傳送至的方法。

callbackData
IntPtr

nativeint

必要但被忽略的內部指標。 您可以為這個參數傳入 Zero

範例

如需程式碼範例,請參閱EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)

備註

這個方法會列舉指定元檔中包含的記錄。 每個記錄會個別傳送至 參數所 callback 指定的回呼方法。 一般而言,回呼方法會 PlayRecord 呼叫 方法以「播放」或繪製記錄。

如果回呼方法呼叫 PlayRecord,它必須藉由呼叫 PlayRecord 所列舉之特定 Metafile 的方法來執行此動作。

另請參閱

適用於

EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc, IntPtr, ImageAttributes)

來源:
Graphics.cs
來源:
Graphics.cs
來源:
Graphics.cs

將指定之 Metafile 中的記錄一次一筆地傳送至回呼方法,以使用指定之影像屬性在指定的點上顯示。

public:
 void EnumerateMetafile(System::Drawing::Imaging::Metafile ^ metafile, System::Drawing::Point destPoint, System::Drawing::Graphics::EnumerateMetafileProc ^ callback, IntPtr callbackData, System::Drawing::Imaging::ImageAttributes ^ imageAttr);
public void EnumerateMetafile (System.Drawing.Imaging.Metafile metafile, System.Drawing.Point destPoint, System.Drawing.Graphics.EnumerateMetafileProc callback, IntPtr callbackData, System.Drawing.Imaging.ImageAttributes imageAttr);
public void EnumerateMetafile (System.Drawing.Imaging.Metafile metafile, System.Drawing.Point destPoint, System.Drawing.Graphics.EnumerateMetafileProc callback, IntPtr callbackData, System.Drawing.Imaging.ImageAttributes? imageAttr);
member this.EnumerateMetafile : System.Drawing.Imaging.Metafile * System.Drawing.Point * System.Drawing.Graphics.EnumerateMetafileProc * nativeint * System.Drawing.Imaging.ImageAttributes -> unit
Public Sub EnumerateMetafile (metafile As Metafile, destPoint As Point, callback As Graphics.EnumerateMetafileProc, callbackData As IntPtr, imageAttr As ImageAttributes)

參數

metafile
Metafile

要列舉的 Metafile

destPoint
Point

Point 結構,指定所繪製中繼檔的左上角位置。

callback
Graphics.EnumerateMetafileProc

Graphics.EnumerateMetafileProc 委派,指定中繼檔記錄被傳送至的方法。

callbackData
IntPtr

nativeint

必要但被忽略的內部指標。 您可以為這個參數傳入 Zero

imageAttr
ImageAttributes

ImageAttributes,指定所繪製影像的影像屬性資訊。

範例

如需程式碼範例,請參閱EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)

備註

這個方法會列舉指定元檔中包含的記錄。 每個記錄會個別傳送至 參數所 callback 指定的回呼方法。 一般而言,回呼方法會 PlayRecord 呼叫 方法以「播放」或繪製記錄。

如果回呼方法呼叫 PlayRecord,它必須藉由呼叫 PlayRecord 所列舉之特定 Metafile 的方法來執行此動作。

另請參閱

適用於

EnumerateMetafile(Metafile, PointF, RectangleF, GraphicsUnit, Graphics+EnumerateMetafileProc)

來源:
Graphics.cs
來源:
Graphics.cs
來源:
Graphics.cs

將所選取矩形中的資料錄從 Metafile 一次一筆地傳送至回呼方法,以便在指定的點上顯示。

public:
 void EnumerateMetafile(System::Drawing::Imaging::Metafile ^ metafile, System::Drawing::PointF destPoint, System::Drawing::RectangleF srcRect, System::Drawing::GraphicsUnit srcUnit, System::Drawing::Graphics::EnumerateMetafileProc ^ callback);
public void EnumerateMetafile (System.Drawing.Imaging.Metafile metafile, System.Drawing.PointF destPoint, System.Drawing.RectangleF srcRect, System.Drawing.GraphicsUnit srcUnit, System.Drawing.Graphics.EnumerateMetafileProc callback);
member this.EnumerateMetafile : System.Drawing.Imaging.Metafile * System.Drawing.PointF * System.Drawing.RectangleF * System.Drawing.GraphicsUnit * System.Drawing.Graphics.EnumerateMetafileProc -> unit
Public Sub EnumerateMetafile (metafile As Metafile, destPoint As PointF, srcRect As RectangleF, srcUnit As GraphicsUnit, callback As Graphics.EnumerateMetafileProc)

參數

metafile
Metafile

要列舉的 Metafile

destPoint
PointF

PointF 結構,指定所繪製中繼檔的左上角位置。

srcRect
RectangleF

RectangleF 結構,指定與其左上角相關且要繪製之中繼檔部分。

srcUnit
GraphicsUnit

GraphicsUnit 列舉型別的成員,指定用來判斷由 srcRect 參數指定之矩形所包含之中繼檔部分的測量單位。

callback
Graphics.EnumerateMetafileProc

Graphics.EnumerateMetafileProc 委派,指定中繼檔記錄被傳送至的方法。

範例

如需程式碼範例,請參閱EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)

備註

這個方法會列舉指定元檔中包含的記錄。 每個記錄會個別傳送至 參數所 callback 指定的回呼方法。 一般而言,回呼方法會 PlayRecord 呼叫 方法以「播放」或繪製記錄。

如果回呼方法呼叫 PlayRecord,它必須藉由呼叫 PlayRecord 所列舉之特定 Metafile 的方法來執行此動作。

忽略參數所 srcRect 指定之矩形外的任何繪圖。

適用於

EnumerateMetafile(Metafile, Point[], Graphics+EnumerateMetafileProc, IntPtr, ImageAttributes)

來源:
Graphics.cs
來源:
Graphics.cs
來源:
Graphics.cs

將指定之 Metafile 中的記錄一次一筆地傳送至回呼方法,以使用指定之影像屬性在指定的平行四邊形中顯示。

public:
 void EnumerateMetafile(System::Drawing::Imaging::Metafile ^ metafile, cli::array <System::Drawing::Point> ^ destPoints, System::Drawing::Graphics::EnumerateMetafileProc ^ callback, IntPtr callbackData, System::Drawing::Imaging::ImageAttributes ^ imageAttr);
public void EnumerateMetafile (System.Drawing.Imaging.Metafile metafile, System.Drawing.Point[] destPoints, System.Drawing.Graphics.EnumerateMetafileProc callback, IntPtr callbackData, System.Drawing.Imaging.ImageAttributes imageAttr);
public void EnumerateMetafile (System.Drawing.Imaging.Metafile metafile, System.Drawing.Point[] destPoints, System.Drawing.Graphics.EnumerateMetafileProc callback, IntPtr callbackData, System.Drawing.Imaging.ImageAttributes? imageAttr);
member this.EnumerateMetafile : System.Drawing.Imaging.Metafile * System.Drawing.Point[] * System.Drawing.Graphics.EnumerateMetafileProc * nativeint * System.Drawing.Imaging.ImageAttributes -> unit
Public Sub EnumerateMetafile (metafile As Metafile, destPoints As Point(), callback As Graphics.EnumerateMetafileProc, callbackData As IntPtr, imageAttr As ImageAttributes)

參數

metafile
Metafile

要列舉的 Metafile

destPoints
Point[]

定義平行四邊型之三個 Point 結構的陣列,會決定所繪製中繼檔的大小和位置。

callback
Graphics.EnumerateMetafileProc

Graphics.EnumerateMetafileProc 委派,指定中繼檔記錄被傳送至的方法。

callbackData
IntPtr

nativeint

必要但被忽略的內部指標。 您可以為這個參數傳入 Zero

imageAttr
ImageAttributes

ImageAttributes,指定所繪製影像的影像屬性資訊。

範例

如需程式碼範例,請參閱EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)

備註

這個方法會列舉指定元檔中包含的記錄。 每個記錄會個別傳送至 參數所 callback 指定的回呼方法。 一般而言,回呼方法會 PlayRecord 呼叫 方法以「播放」或繪製記錄。

如果回呼方法呼叫 PlayRecord,它必須藉由呼叫 PlayRecord 所列舉之特定 Metafile 的方法來執行此動作。

參數 destPoints 會指定平行投影的三點。 這三 Point 個結構代表平行投影的左上角、右上角和左下角。 第四個點會從前三個推斷為形成平行投影。 繪製的元檔會縮放並切割,以符合平行投影。

參數所 imageAttr 指定的影像屬性會取代寫入元檔時所指定的屬性。

另請參閱

適用於

EnumerateMetafile(Metafile, Point[], Rectangle, GraphicsUnit, Graphics+EnumerateMetafileProc)

來源:
Graphics.cs
來源:
Graphics.cs
來源:
Graphics.cs

將所選取矩形中的資料錄從 Metafile 一次一筆地傳送至回呼方法,以便在指定的平行四邊形中顯示。

public:
 void EnumerateMetafile(System::Drawing::Imaging::Metafile ^ metafile, cli::array <System::Drawing::Point> ^ destPoints, System::Drawing::Rectangle srcRect, System::Drawing::GraphicsUnit srcUnit, System::Drawing::Graphics::EnumerateMetafileProc ^ callback);
public void EnumerateMetafile (System.Drawing.Imaging.Metafile metafile, System.Drawing.Point[] destPoints, System.Drawing.Rectangle srcRect, System.Drawing.GraphicsUnit srcUnit, System.Drawing.Graphics.EnumerateMetafileProc callback);
member this.EnumerateMetafile : System.Drawing.Imaging.Metafile * System.Drawing.Point[] * System.Drawing.Rectangle * System.Drawing.GraphicsUnit * System.Drawing.Graphics.EnumerateMetafileProc -> unit
Public Sub EnumerateMetafile (metafile As Metafile, destPoints As Point(), srcRect As Rectangle, srcUnit As GraphicsUnit, callback As Graphics.EnumerateMetafileProc)

參數

metafile
Metafile

要列舉的 Metafile

destPoints
Point[]

定義平行四邊型之三個 Point 結構的陣列,會決定所繪製中繼檔的大小和位置。

srcRect
Rectangle

Rectangle 結構,指定與其左上角相關且要繪製之中繼檔部分。

srcUnit
GraphicsUnit

GraphicsUnit 列舉型別的成員,指定用來判斷由 srcRect 參數指定之矩形所包含之中繼檔部分的測量單位。

callback
Graphics.EnumerateMetafileProc

Graphics.EnumerateMetafileProc 委派,指定中繼檔記錄被傳送至的方法。

範例

如需程式碼範例,請參閱EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)

備註

這個方法會列舉指定元檔中包含的記錄。 每個記錄會個別傳送至 參數所 callback 指定的回呼方法。 一般而言,回呼方法會 PlayRecord 呼叫 方法以「播放」或繪製記錄。

如果回呼方法呼叫 PlayRecord,它必須藉由呼叫 PlayRecord 所列舉之特定 Metafile 的方法來執行此動作。

參數 destPoints 會指定平行投影的三點。 這三 Point 個結構代表平行投影的左上角、右上角和左下角。 第四個點會從前三個推斷為形成平行投影。 繪製的元檔會縮放並切割,以符合平行投影。

忽略參數所 srcRect 指定之矩形外的任何繪圖。

適用於

EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)

來源:
Graphics.cs
來源:
Graphics.cs
來源:
Graphics.cs

將所指定 Metafile 中的資料錄一次一筆地傳送至回呼方法,以便在指定的點上顯示。

public:
 void EnumerateMetafile(System::Drawing::Imaging::Metafile ^ metafile, System::Drawing::Point destPoint, System::Drawing::Graphics::EnumerateMetafileProc ^ callback);
public void EnumerateMetafile (System.Drawing.Imaging.Metafile metafile, System.Drawing.Point destPoint, System.Drawing.Graphics.EnumerateMetafileProc callback);
member this.EnumerateMetafile : System.Drawing.Imaging.Metafile * System.Drawing.Point * System.Drawing.Graphics.EnumerateMetafileProc -> unit
Public Sub EnumerateMetafile (metafile As Metafile, destPoint As Point, callback As Graphics.EnumerateMetafileProc)

參數

metafile
Metafile

要列舉的 Metafile

destPoint
Point

Point 結構,指定所繪製中繼檔的左上角位置。

callback
Graphics.EnumerateMetafileProc

Graphics.EnumerateMetafileProc 委派,指定中繼檔記錄被傳送至的方法。

範例

下列程式代碼範例會建立窗體,其具有 Metafile 做為其其中一個私用成員。 方法會 OnPaint 呼叫 EnumerateMetafile,它會針對元檔中的每個記錄呼叫窗體的 MetafileCallback 方法。 MetafileCallback 方法會呼叫 PlayRecord 方法。 請注意, MetafileCallback 方法會以 的形式 IntPtr接收記錄數據,但 PlayRecord 方法預期記錄數據為位元組陣列。 的呼叫 Copy 會將記錄資料複製到位元組陣列,以便將它傳遞至 PlayRecord


using System;
using System.Drawing;
using System.Drawing.Imaging;
using System.Windows.Forms;

// for Marshal.Copy
using System.Runtime.InteropServices; 

public class Form1 : Form
{
    private Metafile metafile1;
    private Graphics.EnumerateMetafileProc metafileDelegate;
    private Point destPoint;
    public Form1()
    {
        metafile1 = new Metafile(@"C:\Test.wmf");
        metafileDelegate = new Graphics.EnumerateMetafileProc(MetafileCallback);
        destPoint = new Point(20, 10);
    }
    protected override void OnPaint(PaintEventArgs e)
    {
        e.Graphics.EnumerateMetafile(metafile1, destPoint, metafileDelegate);
    }
    private bool MetafileCallback(
       EmfPlusRecordType recordType,
       int flags,
       int dataSize,
       IntPtr data,
       PlayRecordCallback callbackData)
    {
        byte[] dataArray = null;
        if (data != IntPtr.Zero)
        {
            // Copy the unmanaged record to a managed byte buffer 
            // that can be used by PlayRecord.
            dataArray = new byte[dataSize];
            Marshal.Copy(data, dataArray, 0, dataSize);
        }

        metafile1.PlayRecord(recordType, flags, dataSize, dataArray);

        return true;
    }

    static void Main()
    {
        Application.Run(new Form1());
    }
}
Imports System.Drawing
Imports System.Drawing.Imaging
Imports System.Windows.Forms
' for Marshal.Copy
Imports System.Runtime.InteropServices


Public Class Form1
    Inherits Form
    Private metafile1 As Metafile
    Private metafileDelegate As Graphics.EnumerateMetafileProc
    Private destPoint As Point
    
    Public Sub New() 
        metafile1 = New Metafile("C:\test.wmf")
        metafileDelegate = New Graphics.EnumerateMetafileProc(AddressOf MetafileCallback)
        destPoint = New Point(20, 10)
    
    End Sub
    
    Protected Overrides Sub OnPaint(ByVal e As PaintEventArgs) 
        e.Graphics.EnumerateMetafile(metafile1, destPoint, metafileDelegate)
    
    End Sub
    
    Private Function MetafileCallback(ByVal recordType As _
        EmfPlusRecordType, ByVal flags As Integer, ByVal dataSize As Integer, _
        ByVal data As IntPtr, ByVal callbackData As PlayRecordCallback) As Boolean

        Dim dataArray As Byte() = Nothing
        If data <> IntPtr.Zero Then

            ' Copy the unmanaged record to a managed byte buffer 
            ' that can be used by PlayRecord.
            dataArray = New Byte(dataSize) {}
            Marshal.Copy(data, dataArray, 0, dataSize)
        End If

        metafile1.PlayRecord(recordType, flags, dataSize, dataArray)
        Return True

    End Function
    
    Shared Sub Main() 
        Application.Run(New Form1())
    End Sub

End Class

備註

這個方法會列舉指定元檔中包含的記錄。 每個記錄會個別傳送至 參數所 callback 指定的回呼方法。 一般而言,回呼方法會 PlayRecord 呼叫 方法以「播放」或繪製記錄。

如果回呼方法呼叫 PlayRecord,它必須藉由呼叫 PlayRecord 所列舉之特定 Metafile 的方法來執行此動作。

另請參閱

適用於