Class ICCColorSpaceWithIntent

java.lang.Object
java.awt.color.ColorSpace
java.awt.color.ICC_ColorSpace
org.apache.xmlgraphics.java2d.color.ICCColorSpaceWithIntent
All Implemented Interfaces:
Serializable, ColorSpaceOrigin

public class ICCColorSpaceWithIntent extends ICC_ColorSpace implements ColorSpaceOrigin
This class extends the ICCColorSpace class by providing convenience methods to convert to sRGB using various methods, forcing a given intent, such as perceptual or relative colorimetric. It also additionally holds the name and source URI of the color profile.
See Also:
  • Constructor Details

    • ICCColorSpaceWithIntent

      public ICCColorSpaceWithIntent(ICC_Profile p, RenderingIntent intent, String profileName, String profileURI)
      Creates a new ICC-based color space.
      Parameters:
      p - the color profile
      intent - the overriding rendering intent (use RenderingIntent.AUTO to preserve the profile's)
      profileName - the color profile name
      profileURI - the source URI of the color profile
  • Method Details

    • intendedToRGB

      public float[] intendedToRGB(float[] values)
      Returns the sRGB value obtained by forcing the conversion method to the intent passed to the constructor.
      Parameters:
      values - the color values in the local color space
      Returns:
      the sRGB values
    • getProfileName

      public String getProfileName()
      Returns the name of the profile used to identify the color space in a particular context.
      Specified by:
      getProfileName in interface ColorSpaceOrigin
      Returns:
      the profile name
    • getProfileURI

      public String getProfileURI()
      Returns the URI identifying the associate color profile.
      Specified by:
      getProfileURI in interface ColorSpaceOrigin
      Returns:
      the profile URI