Graphics.EnumerateMetafile 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将指定 Metafile 中的记录逐个发送到回调方法以在指定的点处显示。
重载
EnumerateMetafile(Metafile, PointF, RectangleF, GraphicsUnit, Graphics+EnumerateMetafileProc, IntPtr)
- Source:
- Graphics.cs
- Source:
- Graphics.cs
- Source:
- 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)
参数
- 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, Rectangle, Graphics+EnumerateMetafileProc, IntPtr, ImageAttributes)
- Source:
- Graphics.cs
- Source:
- Graphics.cs
- Source:
- 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)
参数
- callback
- Graphics.EnumerateMetafileProc
Graphics.EnumerateMetafileProc 委托,它指定将图元文件记录发送到的方法。
- imageAttr
- ImageAttributes
ImageAttributes,它指定所绘制图像的图像特性信息。
示例
有关代码示例,请参阅 EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)。
注解
此方法枚举指定图元文件中包含的记录。 每个记录单独发送到 参数 callback
指定的回调方法。 通常,回调方法调用 PlayRecord 方法以“播放”或绘制记录。
如果回调方法调用 PlayRecord,则必须通过调用 PlayRecord 正在枚举的特定 Metafile 的 方法执行此操作。
参数 imageAttr
指定的图像属性将替换写入图元文件时指定的属性。
另请参阅
适用于
EnumerateMetafile(Metafile, Rectangle, Rectangle, GraphicsUnit, Graphics+EnumerateMetafileProc)
- Source:
- Graphics.cs
- Source:
- Graphics.cs
- Source:
- 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)
参数
- 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)
- Source:
- Graphics.cs
- Source:
- Graphics.cs
- Source:
- 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)
参数
- destRect
- RectangleF
RectangleF 结构,它指定所绘制图元文件的位置和大小。
- callback
- Graphics.EnumerateMetafileProc
Graphics.EnumerateMetafileProc 委托,它指定将图元文件记录发送到的方法。
- imageAttr
- ImageAttributes
ImageAttributes,它指定所绘制图像的图像特性信息。
示例
有关代码示例,请参阅 EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)。
注解
此方法枚举指定图元文件中包含的记录。 每个记录单独发送到 参数 callback
指定的回调方法。 通常,回调方法调用 PlayRecord 方法以“播放”或绘制记录。
如果回调方法调用 PlayRecord,则必须通过调用 PlayRecord 正在枚举的特定 Metafile 的 方法执行此操作。
参数 imageAttr
指定的图像属性将替换写入图元文件时指定的属性。
另请参阅
适用于
EnumerateMetafile(Metafile, RectangleF, RectangleF, GraphicsUnit, Graphics+EnumerateMetafileProc)
- Source:
- Graphics.cs
- Source:
- Graphics.cs
- Source:
- 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)
参数
- 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)
- Source:
- Graphics.cs
- Source:
- Graphics.cs
- Source:
- 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)
参数
- srcUnit
- GraphicsUnit
GraphicsUnit 枚举的成员,它指定度量单位,该度量单位用于确定 srcRect
参数指定的矩形所包含的部分图元文件。
- callback
- Graphics.EnumerateMetafileProc
Graphics.EnumerateMetafileProc 委托,它指定将图元文件记录发送到的方法。
示例
有关代码示例,请参阅 EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)。
注解
此方法枚举指定图元文件中包含的记录。 每个记录单独发送到 参数 callback
指定的回调方法。 通常,回调方法调用 PlayRecord 方法以“播放”或绘制记录。
如果回调方法调用 PlayRecord,则必须通过调用 PlayRecord 正在枚举的特定 Metafile 的 方法执行此操作。
另请参阅
适用于
EnumerateMetafile(Metafile, Point[], Rectangle, GraphicsUnit, Graphics+EnumerateMetafileProc, IntPtr)
- Source:
- Graphics.cs
- Source:
- Graphics.cs
- Source:
- 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)
参数
- srcUnit
- GraphicsUnit
GraphicsUnit 枚举的成员,它指定度量单位,该度量单位用于确定 srcRect
参数指定的矩形所包含的部分图元文件。
- callback
- Graphics.EnumerateMetafileProc
Graphics.EnumerateMetafileProc 委托,它指定将图元文件记录发送到的方法。
示例
有关代码示例,请参阅 EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)。
注解
此方法枚举指定图元文件中包含的记录。 每个记录单独发送到 参数 callback
指定的回调方法。 通常,回调方法调用 PlayRecord 方法以“播放”或绘制记录。
如果回调方法调用 PlayRecord,则必须通过调用 PlayRecord 正在枚举的特定 Metafile 的 方法执行此操作。
参数 destPoints
指定平行四边形的三个点。 这三个 Point 结构表示平行四边形的左上角、右上角和左下角。 从前三个点推断出第四个点,形成一个平行四边形。 绘制的图元文件经过缩放和剪切以适应平行四边形。
将忽略在 参数指定的 srcRect
矩形之外发生的任何绘图。
另请参阅
适用于
EnumerateMetafile(Metafile, PointF[], RectangleF, GraphicsUnit, Graphics+EnumerateMetafileProc, IntPtr)
- Source:
- Graphics.cs
- Source:
- Graphics.cs
- Source:
- 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)
参数
- srcRect
- RectangleF
RectangleF 结构,它相对于图元文件的左上角指定要绘制的部分图元文件。
- srcUnit
- GraphicsUnit
GraphicsUnit 枚举的成员,它指定度量单位,该度量单位用于确定 srcRect
参数指定的矩形所包含的部分图元文件。
- callback
- Graphics.EnumerateMetafileProc
Graphics.EnumerateMetafileProc 委托,它指定将图元文件记录发送到的方法。
示例
有关代码示例,请参阅 EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)。
注解
此方法枚举指定图元文件中包含的记录。 每个记录单独发送到 参数 callback
指定的回调方法。 通常,回调方法调用 PlayRecord 方法以“播放”或绘制记录。
如果回调方法调用 PlayRecord,则必须通过调用 PlayRecord 正在枚举的特定 Metafile 的 方法执行此操作。
参数 destPoints
指定平行四边形的三个点。 这三个 PointF 结构表示平行四边形的左上角、右上角和左下角。 从前三个点推断出第四个点,形成一个平行四边形。 绘制的图元文件经过缩放和剪切以适应平行四边形。
将忽略在 参数指定的 srcRect
矩形之外发生的任何绘图。
另请参阅
适用于
EnumerateMetafile(Metafile, PointF[], RectangleF, GraphicsUnit, Graphics+EnumerateMetafileProc)
- Source:
- Graphics.cs
- Source:
- Graphics.cs
- Source:
- 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)
参数
- 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)
- Source:
- Graphics.cs
- Source:
- Graphics.cs
- Source:
- 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)
参数
- 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, ImageAttributes)
- Source:
- Graphics.cs
- Source:
- Graphics.cs
- Source:
- 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)
参数
- unit
- GraphicsUnit
GraphicsUnit 枚举的成员,它指定度量单位,该度量单位用于确定 srcRect
参数指定的矩形所包含的部分图元文件。
- callback
- Graphics.EnumerateMetafileProc
Graphics.EnumerateMetafileProc 委托,它指定将图元文件记录发送到的方法。
- imageAttr
- ImageAttributes
ImageAttributes,它指定所绘制图像的图像特性信息。
示例
有关代码示例,请参阅 EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)。
注解
此方法枚举指定图元文件中包含的记录。 每条记录分别发送到 参数 callback
指定的回调方法。 通常,回调方法调用 PlayRecord 方法以“播放”或绘制记录。
如果回调方法调用 PlayRecord,则必须通过调用 PlayRecord 正在枚举的特定 Metafile 的 方法来执行此操作。
适用于
EnumerateMetafile(Metafile, Point[], Rectangle, GraphicsUnit, Graphics+EnumerateMetafileProc, IntPtr, ImageAttributes)
- Source:
- Graphics.cs
- Source:
- Graphics.cs
- Source:
- 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)
参数
- unit
- GraphicsUnit
GraphicsUnit 枚举的成员,它指定度量单位,该度量单位用于确定 srcRect
参数指定的矩形所包含的部分图元文件。
- callback
- Graphics.EnumerateMetafileProc
Graphics.EnumerateMetafileProc 委托,它指定将图元文件记录发送到的方法。
- imageAttr
- ImageAttributes
ImageAttributes,它指定所绘制图像的图像特性信息。
示例
有关代码示例,请参阅 EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)。
注解
此方法枚举指定图元文件中包含的记录。 每条记录分别发送到 参数 callback
指定的回调方法。 通常,回调方法调用 PlayRecord 方法以“播放”或绘制记录。
如果回调方法调用 PlayRecord,则必须通过调用 PlayRecord 正在枚举的特定 Metafile 的 方法来执行此操作。
参数 destPoints
指定平行四边形的三个点。 这三个 Point 结构表示平行四边形的左上角、右上角和左下角。 从前三个点推断出第四个点,形成一个平行四边形。 绘制的图元文件经过缩放和剪切以适应平行四边形。
在 参数指定的 srcRect
矩形之外发生的任何绘图将被忽略。
参数 imageAttr
指定的 image 属性将替换写入图元文件时指定的图像属性。
另请参阅
适用于
EnumerateMetafile(Metafile, PointF, RectangleF, GraphicsUnit, Graphics+EnumerateMetafileProc, IntPtr, ImageAttributes)
- Source:
- Graphics.cs
- Source:
- Graphics.cs
- Source:
- 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)
参数
- srcRect
- RectangleF
RectangleF 结构,它相对于图元文件的左上角指定要绘制的部分图元文件。
- unit
- GraphicsUnit
GraphicsUnit 枚举的成员,它指定度量单位,该度量单位用于确定 srcRect
参数指定的矩形所包含的部分图元文件。
- callback
- Graphics.EnumerateMetafileProc
Graphics.EnumerateMetafileProc 委托,它指定将图元文件记录发送到的方法。
- imageAttr
- ImageAttributes
ImageAttributes,它指定所绘制图像的图像特性信息。
示例
有关代码示例,请参阅 EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)。
注解
此方法枚举指定图元文件中包含的记录。 每条记录分别发送到 参数 callback
指定的回调方法。 通常,回调方法调用 PlayRecord 方法以“播放”或绘制记录。
如果回调方法调用 PlayRecord,则必须通过调用 PlayRecord 正在枚举的特定 Metafile 的 方法来执行此操作。
在 参数指定的 srcRect
矩形之外发生的任何绘图将被忽略。
参数 imageAttr
指定的 image 属性将替换写入图元文件时指定的图像属性。
适用于
EnumerateMetafile(Metafile, PointF[], RectangleF, GraphicsUnit, Graphics+EnumerateMetafileProc, IntPtr, ImageAttributes)
- Source:
- Graphics.cs
- Source:
- Graphics.cs
- Source:
- 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)
参数
- srcRect
- RectangleF
RectangleF 结构,它相对于图元文件的左上角指定要绘制的部分图元文件。
- unit
- GraphicsUnit
GraphicsUnit 枚举的成员,它指定度量单位,该度量单位用于确定 srcRect
参数指定的矩形所包含的部分图元文件。
- callback
- Graphics.EnumerateMetafileProc
Graphics.EnumerateMetafileProc 委托,它指定将图元文件记录发送到的方法。
- imageAttr
- ImageAttributes
ImageAttributes,它指定所绘制图像的图像特性信息。
示例
有关代码示例,请参阅 EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)。
注解
此方法枚举指定图元文件中包含的记录。 每条记录分别发送到 参数 callback
指定的回调方法。 通常,回调方法调用 PlayRecord 方法以“播放”或绘制记录。
如果回调方法调用 PlayRecord,则必须通过调用 PlayRecord 正在枚举的特定 Metafile 的 方法来执行此操作。
参数 destPoints
指定平行四边形的三个点。 这三个 PointF 结构表示平行四边形的左上角、右上角和左下角。 从前三个点推断出第四个点,形成一个平行四边形。 绘制的图元文件经过缩放和剪切以适应平行四边形。
在 参数指定的 srcRect
矩形之外发生的任何绘图将被忽略。
参数 imageAttr
指定的 image 属性将替换写入图元文件时指定的图像属性。
另请参阅
适用于
EnumerateMetafile(Metafile, Rectangle, Rectangle, GraphicsUnit, Graphics+EnumerateMetafileProc, IntPtr, ImageAttributes)
- Source:
- Graphics.cs
- Source:
- Graphics.cs
- Source:
- 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)
参数
- unit
- GraphicsUnit
GraphicsUnit 枚举的成员,它指定度量单位,该度量单位用于确定 srcRect
参数指定的矩形所包含的部分图元文件。
- callback
- Graphics.EnumerateMetafileProc
Graphics.EnumerateMetafileProc 委托,它指定将图元文件记录发送到的方法。
- imageAttr
- ImageAttributes
ImageAttributes,它指定所绘制图像的图像特性信息。
示例
有关代码示例,请参阅 EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)。
注解
此方法枚举指定图元文件中包含的记录。 每个记录单独发送到 参数 callback
指定的回调方法。 通常,回调方法调用 PlayRecord 方法以“播放”或绘制记录。
如果回调方法调用 PlayRecord,则必须通过调用 PlayRecord 正在枚举的特定 Metafile 的 方法执行此操作。
将忽略在 参数指定的 srcRect
矩形之外发生的任何绘图。
参数 imageAttr
指定的图像属性将替换写入图元文件时指定的属性。
另请参阅
适用于
EnumerateMetafile(Metafile, RectangleF, RectangleF, GraphicsUnit, Graphics+EnumerateMetafileProc, IntPtr, ImageAttributes)
- Source:
- Graphics.cs
- Source:
- Graphics.cs
- Source:
- 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)
参数
- destRect
- RectangleF
RectangleF 结构,它指定所绘制图元文件的位置和大小。
- srcRect
- RectangleF
RectangleF 结构,它相对于图元文件的左上角指定要绘制的部分图元文件。
- unit
- GraphicsUnit
GraphicsUnit 枚举的成员,它指定度量单位,该度量单位用于确定 srcRect
参数指定的矩形所包含的部分图元文件。
- callback
- Graphics.EnumerateMetafileProc
Graphics.EnumerateMetafileProc 委托,它指定将图元文件记录发送到的方法。
- imageAttr
- ImageAttributes
ImageAttributes,它指定所绘制图像的图像特性信息。
示例
有关代码示例,请参阅 EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)。
注解
此方法枚举指定图元文件中包含的记录。 每个记录单独发送到 参数 callback
指定的回调方法。 通常,回调方法调用 PlayRecord 方法以“播放”或绘制记录。
如果回调方法调用 PlayRecord,则必须通过调用 PlayRecord 正在枚举的特定 Metafile 的 方法执行此操作。
将忽略在 参数指定的 srcRect
矩形之外发生的任何绘图。
参数 imageAttr
指定的图像属性将替换写入图元文件时指定的属性。
另请参阅
适用于
EnumerateMetafile(Metafile, Rectangle, Rectangle, GraphicsUnit, Graphics+EnumerateMetafileProc, IntPtr)
- Source:
- Graphics.cs
- Source:
- Graphics.cs
- Source:
- 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)
参数
- srcUnit
- GraphicsUnit
GraphicsUnit 枚举的成员,它指定度量单位,该度量单位用于确定 srcRect
参数指定的矩形所包含的部分图元文件。
- callback
- Graphics.EnumerateMetafileProc
Graphics.EnumerateMetafileProc 委托,它指定将图元文件记录发送到的方法。
示例
有关代码示例,请参阅 EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)。
注解
此方法枚举指定图元文件中包含的记录。 每个记录单独发送到 参数 callback
指定的回调方法。 通常,回调方法调用 PlayRecord 方法以“播放”或绘制记录。
如果回调方法调用 PlayRecord,则必须通过调用 PlayRecord 正在枚举的特定 Metafile 的 方法执行此操作。
将忽略在 参数指定的 srcRect
矩形之外发生的任何绘图。
另请参阅
适用于
EnumerateMetafile(Metafile, PointF[], Graphics+EnumerateMetafileProc, IntPtr, ImageAttributes)
- Source:
- Graphics.cs
- Source:
- Graphics.cs
- Source:
- 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)
参数
- callback
- Graphics.EnumerateMetafileProc
Graphics.EnumerateMetafileProc 委托,它指定将图元文件记录发送到的方法。
- imageAttr
- ImageAttributes
ImageAttributes,它指定所绘制图像的图像特性信息。
示例
有关代码示例,请参阅 EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)。
注解
此方法枚举指定图元文件中包含的记录。 每个记录单独发送到 参数 callback
指定的回调方法。 通常,回调方法调用 PlayRecord 方法以“播放”或绘制记录。
如果回调方法调用 PlayRecord,则必须通过调用 PlayRecord 正在枚举的特定 Metafile 的 方法执行此操作。
参数 destPoints
指定平行四边形的三个点。 这三个 PointF 结构表示平行四边形的左上角、右上角和左下角。 从前三个点推断出第四个点,形成一个平行四边形。 绘制的图元文件经过缩放和剪切以适应平行四边形。
参数 imageAttr
指定的图像属性将替换写入图元文件时指定的属性。
另请参阅
适用于
EnumerateMetafile(Metafile, Point, Rectangle, GraphicsUnit, Graphics+EnumerateMetafileProc)
- Source:
- Graphics.cs
- Source:
- Graphics.cs
- Source:
- 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)
参数
- 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)
- Source:
- Graphics.cs
- Source:
- Graphics.cs
- Source:
- 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)
参数
- callback
- Graphics.EnumerateMetafileProc
Graphics.EnumerateMetafileProc 委托,它指定将图元文件记录发送到的方法。
- imageAttr
- ImageAttributes
ImageAttributes,它指定所绘制图像的图像特性信息。
示例
有关代码示例,请参阅 EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)。
注解
此方法枚举指定图元文件中包含的记录。 每个记录单独发送到 参数 callback
指定的回调方法。 通常,回调方法调用 PlayRecord 方法以“播放”或绘制记录。
如果回调方法调用 PlayRecord,则必须通过调用正在枚举的特定 Metafile 的 方法执行此操作。
参数 imageAttr
指定的图像属性将替换写入图元文件时指定的属性。
另请参阅
适用于
EnumerateMetafile(Metafile, Point[], Graphics+EnumerateMetafileProc)
- Source:
- Graphics.cs
- Source:
- Graphics.cs
- Source:
- 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)
参数
- callback
- Graphics.EnumerateMetafileProc
Graphics.EnumerateMetafileProc 委托,它指定将图元文件记录发送到的方法。
示例
有关代码示例,请参阅 EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)。
注解
此方法枚举指定图元文件中包含的记录。 每个记录单独发送到 参数 callback
指定的回调方法。 通常,回调方法调用 PlayRecord 方法以“播放”或绘制记录。
如果回调方法调用 PlayRecord,则必须通过调用 PlayRecord 正在枚举的特定 Metafile 的 方法执行此操作。
另请参阅
适用于
EnumerateMetafile(Metafile, PointF, Graphics+EnumerateMetafileProc)
- Source:
- Graphics.cs
- Source:
- Graphics.cs
- Source:
- 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)
参数
- callback
- Graphics.EnumerateMetafileProc
Graphics.EnumerateMetafileProc 委托,它指定将图元文件记录发送到的方法。
示例
有关代码示例,请参阅 EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)。
注解
此方法枚举指定图元文件中包含的记录。 每个记录单独发送到 参数 callback
指定的回调方法。 通常,回调方法调用 PlayRecord 方法以“播放”或绘制记录。
如果回调方法调用 PlayRecord,则必须通过调用 PlayRecord 正在枚举的特定 Metafile 的 方法执行此操作。
另请参阅
适用于
EnumerateMetafile(Metafile, PointF[], Graphics+EnumerateMetafileProc)
- Source:
- Graphics.cs
- Source:
- Graphics.cs
- Source:
- 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)
参数
- callback
- Graphics.EnumerateMetafileProc
Graphics.EnumerateMetafileProc 委托,它指定将图元文件记录发送到的方法。
示例
有关代码示例,请参阅 EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)。
注解
此方法枚举指定图元文件中包含的记录。 每个记录单独发送到 参数 callback
指定的回调方法。 通常,回调方法调用 PlayRecord 方法以“播放”或绘制记录。
如果回调方法调用 PlayRecord,则必须通过调用 PlayRecord 正在枚举的特定 Metafile 的 方法执行此操作。
参数 destPoints
指定平行四边形的三个点。 这三个 PointF 结构表示平行四边形的左上角、右上角和左下角。 从前三个点推断出第四个点,形成一个平行四边形。 绘制的图元文件经过缩放和剪切以适应平行四边形。
另请参阅
适用于
EnumerateMetafile(Metafile, Rectangle, Graphics+EnumerateMetafileProc)
- Source:
- Graphics.cs
- Source:
- Graphics.cs
- Source:
- 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)
参数
- callback
- Graphics.EnumerateMetafileProc
Graphics.EnumerateMetafileProc 委托,它指定将图元文件记录发送到的方法。
示例
有关代码示例,请参阅 EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)。
注解
此方法枚举指定图元文件中包含的记录。 每个记录单独发送到 参数 callback
指定的回调方法。 通常,回调方法调用 PlayRecord 方法以“播放”或绘制记录。
如果回调方法调用 PlayRecord,则必须通过调用 PlayRecord 正在枚举的特定 Metafile 的 方法执行此操作。
另请参阅
适用于
EnumerateMetafile(Metafile, RectangleF, Graphics+EnumerateMetafileProc)
- Source:
- Graphics.cs
- Source:
- Graphics.cs
- Source:
- 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)
参数
- destRect
- RectangleF
RectangleF 结构,它指定所绘制图元文件的位置和大小。
- callback
- Graphics.EnumerateMetafileProc
Graphics.EnumerateMetafileProc 委托,它指定将图元文件记录发送到的方法。
示例
有关代码示例,请参阅 EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)。
注解
此方法枚举指定图元文件中包含的记录。 每个记录单独发送到 参数 callback
指定的回调方法。 通常,回调方法调用 PlayRecord 方法以“播放”或绘制记录。
如果回调方法调用 PlayRecord,则必须通过调用 PlayRecord 正在枚举的特定 Metafile 的 方法执行此操作。
另请参阅
适用于
EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc, IntPtr)
- Source:
- Graphics.cs
- Source:
- Graphics.cs
- Source:
- 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)
参数
- callback
- Graphics.EnumerateMetafileProc
Graphics.EnumerateMetafileProc 委托,它指定将图元文件记录发送到的方法。
示例
有关代码示例,请参阅 EnumerateMetafile。
注解
此方法枚举指定图元文件中包含的记录。 每个记录单独发送到 参数 callback
指定的回调方法。 通常,回调方法调用 PlayRecord 方法以“播放”或绘制记录。
如果回调方法调用 PlayRecord,则必须通过调用 PlayRecord 正在枚举的特定 Metafile 的 方法执行此操作。
另请参阅
适用于
EnumerateMetafile(Metafile, Point[], Graphics+EnumerateMetafileProc, IntPtr)
- Source:
- Graphics.cs
- Source:
- Graphics.cs
- Source:
- 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)
参数
- callback
- Graphics.EnumerateMetafileProc
Graphics.EnumerateMetafileProc 委托,它指定将图元文件记录发送到的方法。
示例
有关代码示例,请参阅 EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)。
注解
此方法枚举指定图元文件中包含的记录。 每个记录单独发送到 参数 callback
指定的回调方法。 通常,回调方法调用 PlayRecord 方法以“播放”或绘制记录。
如果回调方法调用 PlayRecord,则必须通过调用 PlayRecord 正在枚举的特定 Metafile 的 方法执行此操作。
适用于
EnumerateMetafile(Metafile, PointF, Graphics+EnumerateMetafileProc, IntPtr)
- Source:
- Graphics.cs
- Source:
- Graphics.cs
- Source:
- 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)
参数
- callback
- Graphics.EnumerateMetafileProc
Graphics.EnumerateMetafileProc 委托,它指定将图元文件记录发送到的方法。
示例
有关代码示例,请参阅 EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)。
注解
此方法枚举指定图元文件中包含的记录。 每个记录单独发送到 参数 callback
指定的回调方法。 通常,回调方法调用 PlayRecord 方法以“播放”或绘制记录。
如果回调方法调用 PlayRecord,则必须通过调用 PlayRecord 正在枚举的特定 Metafile 的 方法执行此操作。
另请参阅
适用于
EnumerateMetafile(Metafile, PointF[], Graphics+EnumerateMetafileProc, IntPtr)
- Source:
- Graphics.cs
- Source:
- Graphics.cs
- Source:
- 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)
参数
- callback
- Graphics.EnumerateMetafileProc
Graphics.EnumerateMetafileProc 委托,它指定将图元文件记录发送到的方法。
示例
有关代码示例,请参阅 EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)。
注解
此方法枚举指定图元文件中包含的记录。 每个记录单独发送到 参数 callback
指定的回调方法。 通常,回调方法调用 PlayRecord 方法以“播放”或绘制记录。
如果回调方法调用 PlayRecord,则必须通过调用 PlayRecord 正在枚举的特定 Metafile 的 方法执行此操作。
参数 destPoints
指定平行四边形的三个点。 这三个 PointF 结构表示平行四边形的左上角、右上角和左下角。 从前三个点推断出第四个点,形成一个平行四边形。 绘制的图元文件经过缩放和剪切以适应平行四边形。
另请参阅
适用于
EnumerateMetafile(Metafile, Rectangle, Graphics+EnumerateMetafileProc, IntPtr)
- Source:
- Graphics.cs
- Source:
- Graphics.cs
- Source:
- 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)
参数
- callback
- Graphics.EnumerateMetafileProc
Graphics.EnumerateMetafileProc 委托,它指定将图元文件记录发送到的方法。
示例
有关代码示例,请参阅 EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)。
注解
此方法枚举指定图元文件中包含的记录。 每个记录单独发送到 参数 callback
指定的回调方法。 通常,回调方法调用 PlayRecord 方法以“播放”或绘制记录。
如果回调方法调用 PlayRecord,则必须通过调用 PlayRecord 正在枚举的特定 Metafile 的 方法执行此操作。
另请参阅
适用于
EnumerateMetafile(Metafile, RectangleF, Graphics+EnumerateMetafileProc, IntPtr)
- Source:
- Graphics.cs
- Source:
- Graphics.cs
- Source:
- 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)
参数
- destRect
- RectangleF
RectangleF 结构,它指定所绘制图元文件的位置和大小。
- callback
- Graphics.EnumerateMetafileProc
Graphics.EnumerateMetafileProc 委托,它指定将图元文件记录发送到的方法。
示例
有关代码示例,请参阅 EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)。
注解
此方法枚举指定图元文件中包含的记录。 每个记录单独发送到 参数 callback
指定的回调方法。 通常,回调方法调用 PlayRecord 方法以“播放”或绘制记录。
如果回调方法调用 PlayRecord,则必须通过调用 PlayRecord 正在枚举的特定 Metafile 的 方法执行此操作。
另请参阅
适用于
EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc, IntPtr, ImageAttributes)
- Source:
- Graphics.cs
- Source:
- Graphics.cs
- Source:
- 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)
参数
- callback
- Graphics.EnumerateMetafileProc
Graphics.EnumerateMetafileProc 委托,它指定将图元文件记录发送到的方法。
- imageAttr
- ImageAttributes
ImageAttributes,它指定所绘制图像的图像特性信息。
示例
有关代码示例,请参阅 EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)。
注解
此方法枚举指定图元文件中包含的记录。 每个记录单独发送到 参数 callback
指定的回调方法。 通常,回调方法调用 PlayRecord 方法以“播放”或绘制记录。
如果回调方法调用 PlayRecord,则必须通过调用 PlayRecord 正在枚举的特定 Metafile 的 方法执行此操作。
另请参阅
适用于
EnumerateMetafile(Metafile, PointF, RectangleF, GraphicsUnit, Graphics+EnumerateMetafileProc)
- Source:
- Graphics.cs
- Source:
- Graphics.cs
- Source:
- 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)
参数
- 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)
- Source:
- Graphics.cs
- Source:
- Graphics.cs
- Source:
- 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)
参数
- callback
- Graphics.EnumerateMetafileProc
Graphics.EnumerateMetafileProc 委托,它指定将图元文件记录发送到的方法。
- imageAttr
- ImageAttributes
ImageAttributes,它指定所绘制图像的图像特性信息。
示例
有关代码示例,请参阅 EnumerateMetafile(Metafile, Point, Graphics+EnumerateMetafileProc)。
注解
此方法枚举指定图元文件中包含的记录。 每个记录单独发送到 参数 callback
指定的回调方法。 通常,回调方法调用 PlayRecord 方法以“播放”或绘制记录。
如果回调方法调用 PlayRecord,则必须通过调用 PlayRecord 正在枚举的特定 Metafile 的 方法执行此操作。
参数 destPoints
指定平行四边形的三个点。 这三个 Point 结构表示平行四边形的左上角、右上角和左下角。 从前三个点推断出第四个点,形成一个平行四边形。 绘制的图元文件经过缩放和剪切以适应平行四边形。
参数 imageAttr
指定的图像属性将替换写入图元文件时指定的属性。
另请参阅
适用于
EnumerateMetafile(Metafile, Point[], Rectangle, GraphicsUnit, Graphics+EnumerateMetafileProc)
- Source:
- Graphics.cs
- Source:
- Graphics.cs
- Source:
- 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)
参数
- 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)
- Source:
- Graphics.cs
- Source:
- Graphics.cs
- Source:
- 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)
参数
- 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 的 方法执行此操作。
另请参阅
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈