Enum RenderingIntent

java.lang.Object
java.lang.Enum<RenderingIntent>
org.apache.xmlgraphics.java2d.color.RenderingIntent
All Implemented Interfaces:
Serializable, Comparable<RenderingIntent>, java.lang.constant.Constable

public enum RenderingIntent extends Enum<RenderingIntent>
Enumeration for rendering intents.
  • Enum Constant Details

    • PERCEPTUAL

      public static final RenderingIntent PERCEPTUAL
      Perceptual rendering intent. Typical use: scanned images.
    • RELATIVE_COLORIMETRIC

      public static final RenderingIntent RELATIVE_COLORIMETRIC
      Relative colorimetric rendering intent. Typical use: vector graphics.
    • ABSOLUTE_COLORIMETRIC

      public static final RenderingIntent ABSOLUTE_COLORIMETRIC
      Absolute colorimetric rendering intent. Typical use: logos and solid colors.
    • SATURATION

      public static final RenderingIntent SATURATION
      Saturation rendering intent. Typical use: business graphics.
    • AUTO

      public static final RenderingIntent AUTO
      Automatic rendering intent. The color profile's intent isn't overridden.
  • Method Details

    • values

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

      public static RenderingIntent valueOf(String name)
      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 name
      NullPointerException - 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 also ICC_Profile.ic*)
      Returns:
      the integer value
    • fromICCValue

      public static RenderingIntent fromICCValue(int value)
      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