Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Wednesday, April 4, 2012 7:03:53 AM(UTC)
mbrown62

Groups: Registered
Posts: 1


There is an example doing JPEG compression using the StartCompress ... methods.

Is there a benefit to this method of implementing compression over just setting the "QualityFactor" or "CmpQualityFactorPredefined" in RasterCodecs and just using the Save method?
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Thursday, April 5, 2012 7:33:35 AM(UTC)

Daoud  
Daoud

Groups: Registered
Posts: 256


Hello,
StartCompress() is mainly used when you need buffers and not JPEG image files.
If what you need is a JPEG file on disk (or even in a stream), it's much simpler to use RasterCodecs.Save().

Please note that both methods will use the quality factor you specify in CodecsJpegSaveOptions.QualityFactor, which is a number between 2 and 255.

The value is NOT related to CmpQualityFactorPredefined because that's for the CMP compression and not for JPEG.

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

Powered by YAF.NET | YAF.NET © 2003-2020, Yet Another Forum.NET
This page was generated in 0.103 seconds.