Enum Class RenderingIntent
- All Implemented Interfaces:
Serializable, Comparable<RenderingIntent>, Constable
ICC rendering intent — determines how out-of-gamut colors are handled when
mapping between two color profiles.
ICC 渲染意图 — 决定两个色彩配置文件之间映射时色域外颜色的处理方式。
Native values match lcms2 / ICC v4 spec:
原生数值与 lcms2 / ICC v4 规范保持一致:
- 0 = perceptual
- 1 = relative colorimetric
- 2 = saturation
- 3 = absolute colorimetric
- Since:
- JDK 25, opencode-base-image-codec V1.0.4
- Author:
- Leon Soo www.LeonSoo.com
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAbsolute colorimetric: includes white point adjustment.Perceptual: maintains visual relationships, default for most use cases.Relative colorimetric: maps in-gamut colors precisely, clips out-of-gamut.Saturation: preserves saturation, useful for charts/business graphics. -
Method Summary
Modifier and TypeMethodDescriptionintNative lcms2 / ICC value.static RenderingIntentReturns the enum constant of this class with the specified name.static RenderingIntent[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PERCEPTUAL
Perceptual: maintains visual relationships, default for most use cases. 感知:保持视觉关系,多数场景默认。 -
RELATIVE_COLORIMETRIC
Relative colorimetric: maps in-gamut colors precisely, clips out-of-gamut. 相对色度:精确映射色域内颜色,色域外裁剪。 -
SATURATION
Saturation: preserves saturation, useful for charts/business graphics. 饱和度:保留饱和度,图表/商业图形友好。 -
ABSOLUTE_COLORIMETRIC
Absolute colorimetric: includes white point adjustment. 绝对色度:含白点调整。
-
-
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
-
nativeValue
public int nativeValue()Native lcms2 / ICC value. 原生 lcms2 / ICC 数值。- Returns:
- integer value passed to
cmsCreateTransform| 传给cmsCreateTransform的整数值
-