Class GrayColorModel

  • All Implemented Interfaces:
    java.awt.Transparency

    public class GrayColorModel
    extends java.awt.image.IndexColorModel
    This class represents a 256 color fixed grayscale IndexColorModel.
    Version:
    $Id: //depot/branches/personal/haraldk/twelvemonkeys/release-2/twelvemonkeys-core/src/main/java/com/twelvemonkeys/image/GrayColorModel.java#1 $
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static byte[] sGrays  
      • Fields inherited from class java.awt.image.ColorModel

        pixel_bits, transferType
      • Fields inherited from interface java.awt.Transparency

        BITMASK, OPAQUE, TRANSLUCENT
    • Constructor Summary

      Constructors 
      Constructor Description
      GrayColorModel()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static byte[] createGrayScale()  
      • Methods inherited from class java.awt.image.IndexColorModel

        convertToIntDiscrete, createCompatibleSampleModel, createCompatibleWritableRaster, equals, finalize, getAlpha, getAlphas, getBlue, getBlues, getComponents, getComponents, getComponentSize, getDataElement, getDataElements, getDataElements, getGreen, getGreens, getMapSize, getRed, getReds, getRGB, getRGBs, getTransparency, getTransparentPixel, getValidPixels, hashCode, isCompatibleRaster, isCompatibleSampleModel, isValid, isValid, toString
      • Methods inherited from class java.awt.image.ColorModel

        coerceData, getAlpha, getAlphaRaster, getBlue, getColorSpace, getComponentSize, getDataElement, getDataElements, getGreen, getNormalizedComponents, getNormalizedComponents, getNumColorComponents, getNumComponents, getPixelSize, getRed, getRGB, getRGBdefault, getTransferType, getUnnormalizedComponents, hasAlpha, isAlphaPremultiplied
      • Methods inherited from class java.lang.Object

        clone, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • sGrays

        private static final byte[] sGrays
    • Constructor Detail

      • GrayColorModel

        public GrayColorModel()
    • Method Detail

      • createGrayScale

        private static byte[] createGrayScale()