 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Robert G. Hoover Guest
|
Posted: Wed Aug 25, 2004 1:19 pm Post subject: TJPEGImage, Assign, and CompressionQuality |
|
|
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
|
Posted: Fri Sep 03, 2004 10:06 pm Post subject: Re: TJPEGImage, Assign, and CompressionQuality |
|
|
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 |
|
 |
|
|
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
|
|