KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > java > awt > image > ColorModel

java.awt.image
Class ColorModel

java.lang.Object
  extended by java.awt.image.ColorModel
All Implemented Interfaces:
Transparency
Direct Known Subclasses:
ComponentColorModel, IndexColorModel, PackedColorModel
See Also:
Top Examples, Source Code, IllegalArgumentException, DirectColorModel, Image, BufferedImage, RenderedImage, ColorSpace, SampleModel, Raster, DataBuffer

public ColorModel coerceData(WritableRaster raster,
                             boolean isAlphaPremultiplied)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public ColorModel(int bits)
See Also:
IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected ColorModel(int pixel_bits,
                     int[] bits,
                     ColorSpace cspace,
                     boolean hasAlpha,
                     boolean isAlphaPremultiplied,
                     int transparency,
                     int transferType)
See Also:
Transparency, IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public SampleModel createCompatibleSampleModel(int w,
                                               int h)
See Also:
UnsupportedOperationException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public WritableRaster createCompatibleWritableRaster(int w,
                                                     int h)
See Also:
SampleModel, UnsupportedOperationException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean equals(Object obj)
See Also:
Hashtable, Object.hashCode()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void finalize()
See Also:
Object
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public abstract int getAlpha(int pixel)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getAlpha(Object inData)
See Also:
UnsupportedOperationException, ArrayIndexOutOfBoundsException, ClassCastException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public WritableRaster getAlphaRaster(WritableRaster raster)
See Also:
ComponentColorModel
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public abstract int getBlue(int pixel)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getBlue(Object inData)
See Also:
UnsupportedOperationException, ArrayIndexOutOfBoundsException, ClassCastException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final ColorSpace getColorSpace()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int[] getComponents(int pixel,
                           int[] components,
                           int offset)
See Also:
UnsupportedOperationException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int[] getComponents(Object pixel,
                           int[] components,
                           int offset)
See Also:
UnsupportedOperationException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int[] getComponentSize()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getComponentSize(int componentIdx)
See Also:
NullPointerException, ArrayIndexOutOfBoundsException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getDataElement(float[] normComponents,
                          int normOffset)
See Also:
ArrayIndexOutOfBoundsException, IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getDataElement(int[] components,
                          int offset)
See Also:
UnsupportedOperationException, ArrayIndexOutOfBoundsException, IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Object getDataElements(float[] normComponents,
                              int normOffset,
                              Object obj)
See Also:
SampleModel.setDataElements(int, int, java.lang.Object, java.awt.image.DataBuffer), WritableRaster.setDataElements(int, int, java.lang.Object), ArrayIndexOutOfBoundsException, ClassCastException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Object getDataElements(int rgb,
                              Object pixel)
See Also:
SampleModel.setDataElements(int, int, java.lang.Object, java.awt.image.DataBuffer), WritableRaster.setDataElements(int, int, java.lang.Object), UnsupportedOperationException, ArrayIndexOutOfBoundsException, ClassCastException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Object getDataElements(int[] components,
                              int offset,
                              Object obj)
See Also:
SampleModel.setDataElements(int, int, java.lang.Object, java.awt.image.DataBuffer), WritableRaster.setDataElements(int, int, java.lang.Object), UnsupportedOperationException, IllegalArgumentException, ArrayIndexOutOfBoundsException, ClassCastException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public abstract int getGreen(int pixel)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getGreen(Object inData)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public float[] getNormalizedComponents(int[] components,
                                       int offset,
                                       float[] normComponents,
                                       int normOffset)
See Also:
UnsupportedOperationException, ColorModel(int), IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public float[] getNormalizedComponents(Object pixel,
                                       float[] normComponents,
                                       int normOffset)
See Also:
UnsupportedOperationException, ColorModel(int), ArrayIndexOutOfBoundsException, ClassCastException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getNumColorComponents()
See Also:
ColorSpace.getNumComponents()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getNumComponents()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getPixelSize()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public abstract int getRed(int pixel)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getRed(Object inData)
See Also:
UnsupportedOperationException, ArrayIndexOutOfBoundsException, ClassCastException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getRGB(int pixel)
See Also:
getRGBdefault()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getRGB(Object inData)
See Also:
getRGBdefault()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static ColorModel getRGBdefault()
See Also:
ColorSpace
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final int getTransferType()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getTransparency()
See Also:
Transparency.TRANSLUCENT, Transparency.BITMASK, Transparency.OPAQUE
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int[] getUnnormalizedComponents(float[] normComponents,
                                       int normOffset,
                                       int[] components,
                                       int offset)
See Also:
ColorModel(int), UnsupportedOperationException, IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final boolean hasAlpha()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int hashCode()
See Also:
Hashtable, Object.equals(java.lang.Object)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final boolean isAlphaPremultiplied()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean isCompatibleRaster(Raster raster)
See Also:
UnsupportedOperationException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean isCompatibleSampleModel(SampleModel sm)
See Also:
UnsupportedOperationException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected int pixel_bits
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String toString()
See Also:
Object
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected int transferType
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags