Accusoft.TwainPro9.Net
JpegLuminance Property




Gets and sets the luminance quality setting when using a JPEG compression type.
Syntax
'Declaration
 
<DescriptionAttribute("Specifies the luminance quality setting when using a JPEG compression type.")>
<BrowsableAttribute(False)>
<DefaultValueAttribute()>
<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)>
Public Property JpegLuminance As Integer
'Usage
 
Dim instance As SaveOptionsTiff
Dim value As Integer
 
instance.JpegLuminance = value
 
value = instance.JpegLuminance
[Description("Specifies the luminance quality setting when using a JPEG compression type.")]
[Browsable(false)]
[DefaultValue()]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public int JpegLuminance {get; set;}
[Description("Specifies the luminance quality setting when using a JPEG compression type.")]
[Browsable(false)]
[DefaultValue()]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public: __property int get_JpegLuminance();
public: __property void set_JpegLuminance( 
   int value
);
[Description("Specifies the luminance quality setting when using a JPEG compression type.")]
[Browsable(false)]
[DefaultValue()]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public:
property int JpegLuminance {
   int get();
   void set (    int value);
}

Property Value

An integer value which represents the luminance quality setting when using a JPEG compression type.
Remarks

The default value is 10. It should be within the range of 0 to 255.

JPEG Compression is lossy which means there will be data loss. Data loss is the result of JPEG's ability to achieve high compression ratios. Higher quality settings result in less compression, while lower quality settings result in higher compression. Quality versus compression is a tradeoff.

The image compression ratio can be adjusted by setting the Luminance and Chrominance properties. The Luminance property adjusts the luminance or gray scale quality and the Chrominance property adjusts the chrominance or color quality. Lower settings for these properties result in higher quality images with less compression. Higher settings for these properties result in lower quality images with more compression.

For general use photographic type images, setting Luminance = 24 and Chrominance = 30 provides about a 12:1 image compression ratio with minimal data loss. Compression ratios and perceived image quality will vary depending on the image.

See Also

Reference

SaveOptionsTiff Class
SaveOptionsTiff Members

 

 


©2017. Accusoft Corporation. All Rights Reserved.

Send Feedback