Re: Metafiles



Thank you once again Mike. That (individual objects/layers thing) helped a
lot - looks like I can go ahead.

I'll have a look at the SetMapMode() API call.

Cheers

Larry L



"Mike D Sutton" <EDais@xxxxxxxx> wrote in message
news:uxQwhOedGHA.1208@xxxxxxxxxxxxxxxxxxxxxxx
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/




.


Loading