Click here to Skip to main content
15,887,350 members

Comments by J. Dunlap (Top 4 by date)

J. Dunlap 17-Nov-10 17:05pm View    
If they can generate it, then given the same data, I should be able to do the same. I found some info related to generating it, but decided it was not worth the time (with a fixed budget on the project).
J. Dunlap 3-Nov-10 15:03pm View    
Hmm, that didn't come out looking very good, but you get the idea.
J. Dunlap 3-Nov-10 15:02pm View    
I had originally written the converter as a product, which had some sales back then but is a niche project and I doubt I will get anything more from it as it currently stands. I would be willing to send you the source for reference purposes. Just send me a private email and we can discuss.

As for the issue of it not enumerating the metafile, I noticed that if the Graphics object you are using to enumerate the metafile is a screen Graphics and is not currently showing on the screen, the metafile will not be enumerated at all. The solution for this is to use a 1x1 Bitmap and create a Graphics from that. Also, I believe I found it to work better when passing in metafile.PhysicalDimension as the size when enumerating. Here is an example:
<pre lang="cs">Bitmap bmp = new Bitmap(1,1);
Graphics g = Graphics.FromImage(bmp);
g.EnumerateMetafile(
metafile,
new Point(0,0),
new System.Drawing.Rectangle(new Point(0,0),mf.PhysicalDimension.ToSize()),
GraphicsUnit.Pixel,
WmfMetaProc);</pre>
J. Dunlap 18-Jul-10 14:20pm View    
Deleted
Reason for my vote of 5
Nice implementation!