本文整理汇总了C#中EnumerateMetafileProc类的典型用法代码示例。如果您正苦于以下问题:C# EnumerateMetafileProc类的具体用法?C# EnumerateMetafileProc怎么用?C# EnumerateMetafileProc使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
EnumerateMetafileProc类属于命名空间,在下文中一共展示了EnumerateMetafileProc类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: EnumerateMetafile
public void EnumerateMetafile(Metafile metafile, PointF[] destPoints, RectangleF srcRect, GraphicsUnit unit, EnumerateMetafileProc callback, IntPtr callbackData, ImageAttributes imageAttr)
{
if (destPoints == null)
{
throw new ArgumentNullException("destPoints");
}
if (destPoints.Length != 3)
{
throw new ArgumentException(System.Drawing.SR.GetString("GdiplusDestPointsInvalidParallelogram"));
}
IntPtr handle = (metafile == null) ? IntPtr.Zero : metafile.nativeImage;
IntPtr ptr2 = (imageAttr == null) ? IntPtr.Zero : imageAttr.nativeImageAttributes;
IntPtr ptr3 = SafeNativeMethods.Gdip.ConvertPointToMemory(destPoints);
GPRECTF gprectf = new GPRECTF(srcRect);
int status = SafeNativeMethods.Gdip.GdipEnumerateMetafileSrcRectDestPoints(new HandleRef(this, this.NativeGraphics), new HandleRef(metafile, handle), ptr3, destPoints.Length, ref gprectf, (int) unit, callback, new HandleRef(null, callbackData), new HandleRef(imageAttr, ptr2));
Marshal.FreeHGlobal(ptr3);
if (status != 0)
{
throw SafeNativeMethods.Gdip.StatusException(status);
}
}
示例2: EnumerateMetafile
public void EnumerateMetafile(System.Drawing.Imaging.Metafile metafile, Point[] destPoints, EnumerateMetafileProc callback, System.IntPtr callbackData, System.Drawing.Imaging.ImageAttributes imageAttr) {}
示例3: EnumerateMetafile
public void EnumerateMetafile(Metafile metafile, PointF[] destPoints,
RectangleF srcRect, GraphicsUnit srcUnit,
EnumerateMetafileProc callback) {
EnumerateMetafile(metafile, destPoints, srcRect, srcUnit, callback, IntPtr.Zero);
}
示例4: EnumerateMetafile
public void EnumerateMetafile (Metafile metafile, Rectangle destRect, EnumerateMetafileProc callback, IntPtr callbackData, ImageAttributes imageAttr)
{
throw new NotImplementedException ();
}