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 

TJPEGImage, Assign, and CompressionQuality

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





PostPosted: Wed Aug 25, 2004 1:19 pm    Post subject: TJPEGImage, Assign, and CompressionQuality Reply with quote



Hello All,

If I create a TJPEGImage and Assign it data from a TBitmap, does the
CompressionQuality affect the Assign? Or, do I have to call Compress
afterward?

// create working image
TJPEGImage *MyJPG= new TJPEGImage();

// set compression level
MyJPG->CompressionQuality = CompressionTrackBar->Position;

// copy image data
MyJPG->Assign(MyBMP);

// compress data - is this neceassary?
MyJPG->Compress();

Thanks,

Rob


Back to top
Carlos
Guest





PostPosted: Fri Sep 03, 2004 10:06 pm    Post subject: Re: TJPEGImage, Assign, and CompressionQuality Reply with quote



Hi,

as read in the vcl help it seems that you must call Compress() when
streaming but there is no need to do so when saving to file.

Regards,
Carlos.

Robert G. Hoover wrote:

Quote:
Hello All,

If I create a TJPEGImage and Assign it data from a TBitmap, does the
CompressionQuality affect the Assign? Or, do I have to call Compress
afterward?

// create working image
TJPEGImage *MyJPG= new TJPEGImage();

// set compression level
MyJPG->CompressionQuality = CompressionTrackBar->Position;

// copy image data
MyJPG->Assign(MyBMP);

// compress data - is this neceassary?
MyJPG->Compress();

Thanks,

Rob



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.