Load wmf/emf Files?

  • Thread starter Thread starter Christian Stelte
  • Start date Start date
Alex Yakhnin said:
You better off by converting it to one of the formats that CF'd
understand.

That is the problem! The user must select out of 25000 wmf-files and I must
display them in different sizes. SO converting them on the mobile Device
would be fine...


Chris
 
I suggest to use GDI functions to play metafiles on the device:
Obtain hDC of the control you are going to use as a canvas - you can create
a generic Control and override its Paint event
Use GetEnhMetafile(filename) and then in the Onpaint handler -
PlayEnhMetafile(hMetafile) to display metafile on yor canvas.
Potential problem is that some of the metafile records (if metafile was
created on the desktop) might not be recognized by more limited device GDI.
Such records will be simply skipped
 
Back
Top