CodecsCmpQualityFactorPredefined Enumeration (original) (raw)

Summary

Indicates the pre-defined quality factor for saving LEAD CMP compressed images.

Syntax

C#

Objective-C

C++/CLI

Java

Python

public enum CodecsCmpQualityFactorPredefined   

typedef NS_ENUM(NSInteger, LTCodecsCmpQualityFactorPredefined) { LTCodecsCmpQualityFactorPredefinedPerfectQuality1 = -1, LTCodecsCmpQualityFactorPredefinedPerfectQuality2 = -2, LTCodecsCmpQualityFactorPredefinedSuperQuality = -3, LTCodecsCmpQualityFactorPredefinedQuality = -4, LTCodecsCmpQualityFactorPredefinedQualityAndSize = -5, LTCodecsCmpQualityFactorPredefinedSharp = -6, LTCodecsCmpQualityFactorPredefinedLessTiling = -7, LTCodecsCmpQualityFactorPredefinedMaximumQuality = -8, LTCodecsCmpQualityFactorPredefinedMaximumCompression = -9, LTCodecsCmpQualityFactorPredefinedCustom = -10 };

public enum CodecsCmpQualityFactorPredefined 
public enum class CodecsCmpQualityFactorPredefined   

class CodecsCmpQualityFactorPredefined(Enum): Custom = -10 MaximumCompression = -9 MaximumQuality = -8 LessTiling = -7 Sharp = -6 QualityAndSize = -5 Quality = -4 SuperQuality = -3 PerfectQuality2 = -2 PerfectQuality1 = -1

Members

Value Member Description
-10 Custom (MaximumCompression - 1)Custom Quality Factor.
-9 MaximumCompression Maximum compression This option gives maximum compression. It is equivalent to a Q factor of 255.
-8 MaximumQuality Maximum compression keeping quality This option provides maximum compression while maintaining as high as possible image quality.
-7 LessTiling Size more important than quality (less tiling) This option produces less tiling in the image than the previous options. However, it may distort some text or straight lines. It is a good option for image database applications.
-6 Sharp Size more important that quality (sharp) This option is recommended for images that have sharp edges. For example, an image that has a text overlay or an image with many straight lines. While it creates a larger file than the next option, it retains better edges.
-5 QualityAndSize Quality and size equally important This option provides the highest compression while maintaining good image quality. Try this option first, then move up or down the list accordingly to obtain acceptable compression size and image quality.
-4 Quality Quality more important than size While more colors are removed, most of them are colors or shades that are close to one another. The compressed image will appear very much like the original image. It will take some study to see the difference.
-3 SuperQuality Quality far more important than size This option removes colors not noticed by the human eye. Most viewers cannot tell the difference between an image compressed at this level and the original image.
-2 PerfectQuality2 Perfect quality 2 This will produce a smaller file size than PQ1 while maintaining similar quality.
-1 PerfectQuality1 Perfect quality 1 This option compresses all colors of a 24-bit file and maintains the quality of the original image at a smaller file size. As the name suggests, there is no visual loss of color at this setting.

Leadtools.Codecs Assembly

CompactFile(Stream,Stream,int,int,bool,int,int,bool,int,CodecsSavePageMode,bool,bool) Method

CompactFile(Stream,Stream,int,int,bool,long,int,bool,long,CodecsSavePageMode,bool,bool,bool) Method

CompactFile(string,string,int,int,bool,int,int,bool,int,CodecsSavePageMode,bool,bool) Method

CompactFile(string,string,int,int,bool,long,int,bool,long,CodecsSavePageMode,bool,bool,bool) Method

StartCompress(int,int,int,RasterByteOrder,RasterViewPerspective,int,byte[],int,int,CodecsCompression,CodecsCompressDataCallback) Method