Get Metafile from Image Control
#1
Hi all,

I'm trying to get a metafile that I have transform an Image with
Code:
ReaderWmf metafileReader = new ReaderWmf();
Metafile metafileImage = Clipboard.GetData(DataFormats.EnhancedMetafile) as Metafile;
IntPtr hEmf = metafileImage.GetHenhmetafile();
Image myImage = metafileReader.GetGeometryFromHemf(hEmf, GeometrySettings.BasicOptimization);
string xamlStr = metafileReader.GetXaml();

Now I have my image control but I'm stuck to get the content as metafile.
I guess the ReaderWmf is not able to do that?
Do you have a solution because I need to do some transformation on my metafile and serialize it as XAML.

Regards,
Antony.
  


Messages In This Thread
Get Metafile from Image Control - by abody - 06-30-2010, 10:06 AM
RE: Get Metafile from Image Control - by abenedik - 06-30-2010, 11:06 PM
RE: Get Metafile from Image Control - by abody - 07-01-2010, 10:06 AM
RE: Get Metafile from Image Control - by abenedik - 07-01-2010, 03:02 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)