Package com.datalogics.PDFL
Enum Class CompressQuality
- All Implemented Interfaces:
Serializable,Comparable<CompressQuality>,Constable
Establish the compression quality to be used in compression schemas that allow variable quality. (JPEG, JPEG2000, JBIG2). Unset should be selected for compression schemes that are inherently lossless (Flate, CCITTG3, or CCITTG4). JBIG2 may select any value. JPEG and JPEG2000 can select any value between Minimum and Maximum, but should not select Unset or Lossless.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFor JPEG, this will equate to a QFactor of 0.25.This may ONLY be selected for Flate, CCITTG3, CCITTG4, and JBIG2For JPEG, this will equate to a QFactor of 0.75.For JPEG, this will equate to a QFactor of 0.15.For JPEG, this will equate to a QFactor of 0.5.For JPEG, this will equate to a QFactor of 1.3.No Quality is selected. -
Method Summary
Modifier and TypeMethodDescriptionstatic CompressQualityReturns the enum constant of this class with the specified name.static CompressQuality[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
UNSET
No Quality is selected. This is appropriate for Flate, JBIG2, CCITTG3, or CCITTG4 compression. -
MINIMUM
For JPEG, this will equate to a QFactor of 1.3. For JPEG2000, this will equate to Quality of 0. For JBIG2, this will equate to a JB2Quality of 4. -
LOW
For JPEG, this will equate to a QFactor of 0.75. For JPEG2000, this will equate to Quality of 25. For JBIG2, this will equate to a JB2Quality of 5. -
MEDIUM
For JPEG, this will equate to a QFactor of 0.5. For JPEG2000, this will equate to Quality of 50. For JBIG2, this will equate to a JB2Quality of 7. -
HIGH
For JPEG, this will equate to a QFactor of 0.25. For JPEG2000, this will equate to Quality of 75. For JBIG2, this will equate to a JB2Quality of 9. -
MAXIMUM
For JPEG, this will equate to a QFactor of 0.15. For JPEG2000, this will equate to Quality of 100. For JBIG2, this will equate to a JB2Quality of 10. -
LOSSLESS
This may ONLY be selected for Flate, CCITTG3, CCITTG4, and JBIG2
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-