org.dcm4che2.image
Class PartialComponentColorModel

java.lang.Object
  extended by java.awt.image.ColorModel
      extended by org.dcm4che2.image.PartialComponentColorModel
All Implemented Interfaces:
java.awt.Transparency

public class PartialComponentColorModel
extends java.awt.image.ColorModel


Field Summary
 
Fields inherited from class java.awt.image.ColorModel
pixel_bits, transferType
 
Fields inherited from interface java.awt.Transparency
BITMASK, OPAQUE, TRANSLUCENT
 
Constructor Summary
PartialComponentColorModel(java.awt.color.ColorSpace cspace, int subsampleX, int subsampleY)
           
 
Method Summary
 java.awt.image.SampleModel createCompatibleSampleModel(int w, int h)
           
 int getAlpha(int pixel)
           
 int getAlpha(java.lang.Object inData)
           
 int getBlue(int pixel)
           
 int getBlue(java.lang.Object inData)
           
 int getGreen(int pixel)
           
 int getGreen(java.lang.Object inData)
           
 int getRed(int pixel)
           
 int getRed(java.lang.Object inData)
           
 int getRGB(java.lang.Object inData)
           
 boolean isCompatibleRaster(java.awt.image.Raster raster)
           
 boolean isCompatibleSampleModel(java.awt.image.SampleModel sm)
           
 java.lang.String toString(byte[] rgb)
           
 java.lang.String toString(float[] rgb)
           
 
Methods inherited from class java.awt.image.ColorModel
coerceData, createCompatibleWritableRaster, equals, finalize, getAlphaRaster, getColorSpace, getComponents, getComponents, getComponentSize, getComponentSize, getDataElement, getDataElement, getDataElements, getDataElements, getDataElements, getNormalizedComponents, getNormalizedComponents, getNumColorComponents, getNumComponents, getPixelSize, getRGB, getRGBdefault, getTransferType, getTransparency, getUnnormalizedComponents, hasAlpha, hashCode, isAlphaPremultiplied, toString
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PartialComponentColorModel

public PartialComponentColorModel(java.awt.color.ColorSpace cspace,
                                  int subsampleX,
                                  int subsampleY)
Method Detail

isCompatibleRaster

public boolean isCompatibleRaster(java.awt.image.Raster raster)
Overrides:
isCompatibleRaster in class java.awt.image.ColorModel

isCompatibleSampleModel

public boolean isCompatibleSampleModel(java.awt.image.SampleModel sm)
Overrides:
isCompatibleSampleModel in class java.awt.image.ColorModel

createCompatibleSampleModel

public java.awt.image.SampleModel createCompatibleSampleModel(int w,
                                                              int h)
Overrides:
createCompatibleSampleModel in class java.awt.image.ColorModel

getAlpha

public int getAlpha(int pixel)
Specified by:
getAlpha in class java.awt.image.ColorModel

getBlue

public int getBlue(int pixel)
Specified by:
getBlue in class java.awt.image.ColorModel

getGreen

public int getGreen(int pixel)
Specified by:
getGreen in class java.awt.image.ColorModel

getRed

public int getRed(int pixel)
Specified by:
getRed in class java.awt.image.ColorModel

getAlpha

public int getAlpha(java.lang.Object inData)
Overrides:
getAlpha in class java.awt.image.ColorModel

getBlue

public int getBlue(java.lang.Object inData)
Overrides:
getBlue in class java.awt.image.ColorModel

getGreen

public int getGreen(java.lang.Object inData)
Overrides:
getGreen in class java.awt.image.ColorModel

getRed

public int getRed(java.lang.Object inData)
Overrides:
getRed in class java.awt.image.ColorModel

getRGB

public int getRGB(java.lang.Object inData)
Overrides:
getRGB in class java.awt.image.ColorModel

toString

public java.lang.String toString(float[] rgb)

toString

public java.lang.String toString(byte[] rgb)


Copyright © 2011 dcm4che. All Rights Reserved.