Accusoft.TwainProSdk Namespace > SaveOptionsTiff Class : JpegChrominance Property |
'Declaration <DescriptionAttribute("Specifies the chrominance quality setting when using a JPEG compression type.")> <DefaultValueAttribute()> <BrowsableAttribute(False)> <DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)> Public Property JpegChrominance As Integer
'Usage Dim instance As SaveOptionsTiff Dim value As Integer instance.JpegChrominance = value value = instance.JpegChrominance
[Description("Specifies the chrominance quality setting when using a JPEG compression type.")] [DefaultValue()] [Browsable(false)] [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] public int JpegChrominance {get; set;}
[Description("Specifies the chrominance quality setting when using a JPEG compression type.")] [DefaultValue()] [Browsable(false)] [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] public: __property int get_JpegChrominance(); public: __property void set_JpegChrominance( int value );
[Description("Specifies the chrominance quality setting when using a JPEG compression type.")] [DefaultValue()] [Browsable(false)] [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] public: property int JpegChrominance { int get(); void set ( int value); }
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.