BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Stretching and saving a TMetafile

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics)
View previous topic :: View next topic  
Author Message
Bertrand Gorge
Guest





PostPosted: Wed Feb 11, 2004 8:34 pm    Post subject: Stretching and saving a TMetafile Reply with quote



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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.