Class GFICCProfile

All Implemented Interfaces:
Object, External, ICCProfile
Direct Known Subclasses:
GFICCInputProfile, GFICCOutputProfile

public class GFICCProfile extends GFExternal implements ICCProfile
Author:
Maksim Bezrukov
  • Constructor Details

  • Method Details

    • getN

      public Long getN()
      Description copied from interface: ICCProfile
      value of the N key in the ICC profile stream dictionary
      Specified by:
      getN in interface ICCProfile
      Returns:
      number of colorants for ICC profile, described in profile dictionary
    • getdeviceClass

      public String getdeviceClass()
      Description copied from interface: ICCProfile
      a four-byte string identifying the device class of the profile (monitor, printer, scanner, abstract color space)
      Specified by:
      getdeviceClass in interface ICCProfile
      Returns:
      string representation of device class or null, if profile length is too small
    • getcolorSpace

      public String getcolorSpace()
      Description copied from interface: ICCProfile
      a four-byte string identifying the device class of the profile (GRAY, RGB, CMYK, LAB)
      Specified by:
      getcolorSpace in interface ICCProfile
      Returns:
      string representation of color space or null, if profile length is too small
    • getversion

      public Double getversion()
      Description copied from interface: ICCProfile
      version of the ICC profile
      Specified by:
      getversion in interface ICCProfile
      Returns:
      version of ICC profile or null, if profile length is too small
    • getisValid

      public Boolean getisValid()
      Indicate validity of icc profile.
      Specified by:
      getisValid in interface ICCProfile
      Returns:
      true if profile is valid, false if ICC header is less than 128 bytes or stream cannot be read. Other checks should be implemented by customer.