Re: Metafiles



Hi - I have been studying the exportation of .emf files from my vb app for
use with Adobe Illustrator and or Coreldraw and have couple of questions.
Firstly, if I create say, two polygons and manage to save them to an .emf ,
would the receiving application be able to differentiate between the
polygons (as individual entities, i.e. to place each polygon on a separate
layer in AI or Corel) or would the objects be combined into a single entity?

That's really down to the EMF import module in those applications, however the EMF contains two separate rectangle
records so the potential to distribute them out onto individual layers is certainly there.

My second question is regarding output devices. My app presently gets the
devicecaps from a standard lettersize printer and produces a scale drawing
on paper. The new function I want to add with the .emf file would output
full size approx 6 feet by 4 feet. Is it possible to create the drawing in
the .emf this size without obtaining any device caps from the (unknown)
output device?

Use the SetMapMode() API call to define the mapping mode of the MetaDC you're drawing to, and the playback engine will
be able to convert this scale into device space coordinates on whatever hardware it's rendered to.
Hope this helps,

Mike


- Microsoft Visual Basic MVP -
E-Mail: EDais@xxxxxxxx
WWW: Http://EDais.mvps.org/


.



Relevant Pages

  • Re: Select polygon on EMF on MouseOver
    ... your code work great! ... I'm now able to select polygon and drawing them on a new picturebox. ... Re-open EMF file for his enumeration in a different picturebox ...
    (microsoft.public.vb.general.discussion)
  • Re: fast GDI drawing problem
    ... For GDI related issues, capture your drawing into an EMF, decode it and then ...
    (microsoft.public.win32.programmer.gdi)
  • Re: Write onto Active-X Control
    ... 'modifying individual elements of the drawing' ... I gonna give a try on MetaDraw, ... internal records (or use your own storage format entirely and optionally use EMF to render or export.) If you want to go for a full ... object model approach then you may find the advanced classes tutorial on my site to be useful, ...
    (microsoft.public.vb.winapi.graphics)
  • Re: Display Emf File
    ... The drawing is black & white and contains text (letters and numbers). ... TPommes ... This time I tested a colored EMF file in a Windows XP Pro machine with the ...
    (microsoft.public.vc.mfc)

Loading