Bertrand Gorge Guest
|
Posted: Wed Feb 11, 2004 8:34 pm Post subject: Stretching and saving a TMetafile |
|
|
Hi,
here's my problem : I have a large TMetaFile (one of those .emf
exported from powerpoint), approx 19000x8000 in size (it contains a
few bitmaps in it).
I want to save it to a JPEG file in a smaller size (lower resolution).
I first went through a TBitmap, using the StrechDraw method, but as
everyone knows, this reduces the size of the bitmap using a very poor
interpolation (to the nearest as I've understood). Obviously this
worked but produced images we just can't show.
The other way to do it, is to use a TBitmap the size of the TMetafile,
and then reduce it using a 3rd party lib (stretch from Mike Lischke's
GraphicEx to name it). This works very well, image quality is good,
BUT memory and processor intensive (obvioulsy, considering the size of
the source bitmap).
Now is there any other way I could raster a TMetafile onto a smaller
bitmap without using that (so cheap) StretchDraw method ? I just
couldn't find any info on the web about that...
An activeX or 3rd party lib/dll would suit me fine, I just need
something that produces good quality - antialiased - bitmaps, without
locking the user's computer for hours...
Thanks for any input !
Bertrand Gorge
Epistema
|
|