On 4/25/06, Jasper van de Gronde <th.v.d.gronde@...528...> wrote:
Ulf Erikson wrote:
> On 4/25/06, Bryce Harrington <bryce@...961...> wrote:
>> Also, have you thought about also doing an EMF importer?
>
> The Windows API helps you "play" a WMF/EMF file and later copy the
> result to any device (and automatically rescale the drawing to fit the
> DPI of that device), but I don't think it helps you find the graphical
> objects inside. You would have to parse the (undocumented?) binary
> file yourself to find them. I think this is what libwmf tries to do.
The EMF format is documented, and should not be very hard to parse (or
write for that matter):
Cool. And, while I have ever only used the "Play" metafile function
myself there seems to also be an "Enum" metafile function that
actually does break down a metafile into components. That would make
it very easy to import some basic shapes. I might look a bit closed at
this one day, but not for another month or so..
Thanks