DBPix Documentation
Version 2.0

JPEGQuality Property


Description:  Controls the JPEG quality to be used when encoding an image in the jpeg format.
Type:  Number (short)
Read/Get
Write/Set:
  
 
 
Remarks:  

Values:0 to 100. (0 = lowest quality/highest compression, 100 = highest quality/lowest compression).  Default = 75.

If the ImageSaveFormat property is set to ImageSaveFormatJPEG (0) then this property determines the quality of the image after JPEG compression has been applied.  Depending on the requirements of your application you may be able to compress the image significantly more than the default setting with acceptable image quality;  you should experiment with different settings of this property to obtain optimum results with a typical selection of images for your application. 
Note that this setting is non-linear, and that a setting of 100 does not mean that the resulting image will be identical to the original (Quality values of greater than 95 are not recommended since the compressed file size increases dramatically with little or no gain in image quality).  As a general rule-of-thumb something between 50 and 95 will give good results and the default of 75 will normally give reasonable results.

 

 

Documentation version 2.0.0