Enum RenderingIntent
- All Implemented Interfaces:
Serializable
,Comparable<RenderingIntent>
,java.lang.constant.Constable
Enumeration for rendering intents.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAbsolute colorimetric rendering intent.Automatic rendering intent.Perceptual rendering intent.Relative colorimetric rendering intent.Saturation rendering intent. -
Method Summary
Modifier and TypeMethodDescriptionstatic RenderingIntent
fromICCValue
(int value) Returns the enum value for the given integer rendering intent (as defined by the ICC specification).int
Returns an integer value identifying the rendering intent.static RenderingIntent
Returns the enum constant of this type with the specified name.static RenderingIntent[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PERCEPTUAL
Perceptual rendering intent. Typical use: scanned images. -
RELATIVE_COLORIMETRIC
Relative colorimetric rendering intent. Typical use: vector graphics. -
ABSOLUTE_COLORIMETRIC
Absolute colorimetric rendering intent. Typical use: logos and solid colors. -
SATURATION
Saturation rendering intent. Typical use: business graphics. -
AUTO
Automatic rendering intent. The color profile's intent isn't overridden.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getIntegerValue
public int getIntegerValue()Returns an integer value identifying the rendering intent. This is the same value defined by the ICC specification (0..3) plus one for "auto" (4). (See alsoICC_Profile
.ic*)- Returns:
- the integer value
-
fromICCValue
Returns the enum value for the given integer rendering intent (as defined by the ICC specification).- Parameters:
value
- the rendering intent as ICC value- Returns:
- the matching enum
-