Interface Jpeg2000.Colors

Enclosing class:
Jpeg2000

public static interface Jpeg2000.Colors
Converts colour components the file does not describe itself, as when a PDF gives the image's colour space in its own dictionary.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    The number of components a colour has; ignored for an indexed space.
    boolean
    True for an indexed (palette) space, which takes the raw sample as its one component.
    int
    toRgb(double[] components)
    The RGB value (0xRRGGBB) of the colour whose components, each scaled to 0..1 (or the raw index for an indexed space), are in components.
  • Method Details

    • getComponents

      int getComponents()
      The number of components a colour has; ignored for an indexed space.
    • isIndexed

      boolean isIndexed()
      True for an indexed (palette) space, which takes the raw sample as its one component.
    • toRgb

      int toRgb(double[] components)
      The RGB value (0xRRGGBB) of the colour whose components, each scaled to 0..1 (or the raw index for an indexed space), are in components.