15,918,889 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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!