草庐IT

EnumerateMetafile

全部标签

c# - 为什么 EnumerateMetafile 只能在启用 Aero 的情况下使用

我的代码enumerates图元文件:privatevoidParse(){Graphicsgraphics=Graphics.FromHwnd(IntPtr.Zero);PointFpointf=newPointF();graphics.EnumerateMetafile(_metafile,pointf,ParseCallback);}privateboolParseCallback(EmfPlusRecordTyperecordType,intflags,intdataSize,IntPtrdata,PlayRecordCallbackcallbackData){//dostuf

c# - 为什么 EnumerateMetafile 只能在启用 Aero 的情况下使用

我的代码enumerates图元文件:privatevoidParse(){Graphicsgraphics=Graphics.FromHwnd(IntPtr.Zero);PointFpointf=newPointF();graphics.EnumerateMetafile(_metafile,pointf,ParseCallback);}privateboolParseCallback(EmfPlusRecordTyperecordType,intflags,intdataSize,IntPtrdata,PlayRecordCallbackcallbackData){//dostuf