Enum Class RenderingIntent

java.lang.Object
java.lang.Enum<RenderingIntent>
cloud.opencode.base.image.codec.color.RenderingIntent
All Implemented Interfaces:
Serializable, Comparable<RenderingIntent>, Constable

public enum RenderingIntent extends Enum<RenderingIntent>
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:
  • Enum Constant Details

    • PERCEPTUAL

      public static final RenderingIntent PERCEPTUAL
      Perceptual: maintains visual relationships, default for most use cases. 感知:保持视觉关系,多数场景默认。
    • RELATIVE_COLORIMETRIC

      public static final RenderingIntent RELATIVE_COLORIMETRIC
      Relative colorimetric: maps in-gamut colors precisely, clips out-of-gamut. 相对色度:精确映射色域内颜色,色域外裁剪。
    • SATURATION

      public static final RenderingIntent SATURATION
      Saturation: preserves saturation, useful for charts/business graphics. 饱和度:保留饱和度,图表/商业图形友好。
    • ABSOLUTE_COLORIMETRIC

      public static final RenderingIntent ABSOLUTE_COLORIMETRIC
      Absolute colorimetric: includes white point adjustment. 绝对色度:含白点调整。
  • Method Details

    • values

      public static RenderingIntent[] 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

      public static RenderingIntent valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • nativeValue

      public int nativeValue()
      Native lcms2 / ICC value. 原生 lcms2 / ICC 数值。
      Returns:
      integer value passed to cmsCreateTransform | 传给 cmsCreateTransform 的整数值