Solved

wmf to dxf ?

Posted on 1998-08-10
4
366 Views
Last Modified: 2010-04-06
   Is there a way for me to convert a wmf fle to dxf file format?
0
Comment
Question by:imby
  • 2
4 Comments
 
LVL 3

Expert Comment

by:MorFF
Comment Utility
Have a look at UpFront, it'll do the job nicely...

www.gomark.com/html/Design/Upfront2.html

Cheers - MorFF
0
 

Author Comment

by:imby
Comment Utility
Sorry for not giving enough detail on the question.  I actually needed a Visual Basic Code that would do conversion from WMF to DXF and vice versa.
0
 
LVL 3

Expert Comment

by:MorFF
Comment Utility
Sorry, but you're asking for something that is a bit specialised.  There's a lot of commercial stuff out there.

You may want to post this question in the VB area instead.

MorFF
0
 
LVL 8

Accepted Solution

by:
Answers2000 earned 300 total points
Comment Utility
You have to write a substantial amount of code to do this.  Basically you'd have to step through the input file, play into some kind of memory structure and write it out bit by bit.  This will take a lot of time to write as both formats have a lot of complicated variation.

You can read up on WMF in the SDK documentation.  Be aware there are enhanced and win 3.1 formats.  Additionally there is a Xerox variant used in DTP which precedes the win 3.1 format with some additional crap.

You can read up on DXF in Chapter 19 of Graphics File Formats by Kay & Levine, Windcrest/McGraw-Hill 1995, ISBN 0-07-034025-0.  (it also has some on WMF too).

If you decide to write this code, I would suggest you don't do it in  VB.  WMF is a low level format (lots of bit manipulation).  It would be a good task for C or C++.  Stick the C code into DLL, ActiveX or OCX control, and then call it from VB.

However if you simply want to translate, use a trick: find a program (e.g. Halo, I think) which has a command line translator, and kick it off from VB.

Lead Tools also have an OCX which does graphics display and is supposed to support WMF & DXF.  I haven't tried it, but this may also be sufficient (you won't get source, but you can call it from your VB program)
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Add text to png file. 3 105
Image optimization 7 139
Windows 10 Photo Editor that works on Domains 4 64
Pinnacle Studio 19 5 13
Many programs have tried to outwit PowerPoint in terms of technology and skill. These programs, however, still lack several characteristics that PowerPoint has possessed from the start. Here's why PowerPoint replacements won't entirely work for desi…
Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
In this Micro Tutorial viewers will learn the basic shortcuts and functions in InDesign.
In addition to being a great web-based presentation tool, Prezi also makes it easy to save your presentation as a PDF to share with others as well. Learn how in this tutorial. Select the share icon from the top menu in your Prezi editor: Select "D…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now