Class Index16ColorModel

java.lang.Object
java.awt.image.ColorModel
loci.formats.gui.Index16ColorModel
All Implemented Interfaces:
Transparency

public class Index16ColorModel extends ColorModel
ColorModel that handles 16 bits per channel lookup tables.
  • Field Details

    • redShort

      private short[] redShort
      Lookup tables.
    • greenShort

      private short[] greenShort
      Lookup tables.
    • blueShort

      private short[] blueShort
      Lookup tables.
    • alphaShort

      private short[] alphaShort
      Lookup tables.
  • Constructor Details

    • Index16ColorModel

      public Index16ColorModel(int bits, int size, short[][] table, boolean littleEndian) throws IOException
      Throws:
      IOException
  • Method Details

    • getReds

      public short[] getReds()
      Return the array of red color components.
    • getGreens

      public short[] getGreens()
      Return the array of green color components.
    • getBlues

      public short[] getBlues()
      Return the array of blue color components.
    • getAlphas

      public short[] getAlphas()
      Return the array of alpha color components.
    • getDataElements

      public Object getDataElements(int rgb, Object pixel)
      Overrides:
      getDataElements in class ColorModel
    • isCompatibleRaster

      public boolean isCompatibleRaster(Raster raster)
      Overrides:
      isCompatibleRaster in class ColorModel
    • createCompatibleWritableRaster

      public WritableRaster createCompatibleWritableRaster(int w, int h)
      Overrides:
      createCompatibleWritableRaster in class ColorModel
    • getAlpha

      public int getAlpha(int pixel)
      Specified by:
      getAlpha in class ColorModel
    • getBlue

      public int getBlue(int pixel)
      Specified by:
      getBlue in class ColorModel
    • getGreen

      public int getGreen(int pixel)
      Specified by:
      getGreen in class ColorModel
    • getRed

      public int getRed(int pixel)
      Specified by:
      getRed in class ColorModel