当前位置: 首页>>代码示例>>C#>>正文


C# EnumerateMetafileProc类代码示例

本文整理汇总了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);
     }
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:21,代码来源:Graphics.cs

示例2: EnumerateMetafile

	public void EnumerateMetafile(System.Drawing.Imaging.Metafile metafile, Point[] destPoints, EnumerateMetafileProc callback, System.IntPtr callbackData, System.Drawing.Imaging.ImageAttributes imageAttr) {}
开发者ID:Pengfei-Gao,项目名称:source-Insight-3-for-centos7,代码行数:1,代码来源:Graphics.cs

示例3: EnumerateMetafile

 public void EnumerateMetafile(Metafile metafile, PointF[] destPoints,
                               RectangleF srcRect, GraphicsUnit srcUnit,
                               EnumerateMetafileProc callback) {
     EnumerateMetafile(metafile, destPoints, srcRect, srcUnit, callback, IntPtr.Zero);
 }
开发者ID:nlh774,项目名称:DotNetReferenceSource,代码行数:5,代码来源:Graphics.cs

示例4: EnumerateMetafile

		public void EnumerateMetafile (Metafile metafile, Rectangle destRect, EnumerateMetafileProc callback, IntPtr callbackData, ImageAttributes imageAttr)
		{
			throw new NotImplementedException ();
		}
开发者ID:carrie901,项目名称:mono,代码行数:4,代码来源:Graphics.cs


注:本文中的EnumerateMetafileProc类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。