Java java.awt.image ColorModel fields, constructors, methods, implement or subclass

Example usage for Java java.awt.image ColorModel fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.awt.image ColorModel.

The text is from its open source code.

Field

Method

ColorModelcoerceData(WritableRaster raster, boolean isAlphaPremultiplied)
Forces the raster data to match the state specified in the isAlphaPremultiplied variable, assuming the data is currently correctly described by this ColorModel .
SampleModelcreateCompatibleSampleModel(int w, int h)
Creates a SampleModel with the specified width and height that has a data layout compatible with this ColorModel .
WritableRastercreateCompatibleWritableRaster(int w, int h)
Creates a WritableRaster with the specified width and height that has a data layout ( SampleModel ) compatible with this ColorModel .
intgetAlpha(int pixel)
Returns the alpha component for the specified pixel, scaled from 0 to 255.
intgetAlpha(Object inData)
Returns the alpha component for the specified pixel, scaled from 0 to 255.
intgetBlue(int pixel)
Returns the blue color component for the specified pixel, scaled from 0 to 255 in the default RGB ColorSpace, sRGB.
intgetBlue(Object inData)
Returns the blue color component for the specified pixel, scaled from 0 to 255 in the default RGB ColorSpace , sRGB.
ClassgetClass()
Returns the runtime class of this Object .
ColorSpacegetColorSpace()
Returns the ColorSpace associated with this ColorModel .
int[]getComponents(int pixel, int[] components, int offset)
Returns an array of unnormalized color/alpha components given a pixel in this ColorModel .
int[]getComponents(Object pixel, int[] components, int offset)
Returns an array of unnormalized color/alpha components given a pixel in this ColorModel .
int[]getComponentSize()
Returns an array of the number of bits per color/alpha component.
intgetComponentSize(int componentIdx)
Returns the number of bits for the specified color/alpha component.
ObjectgetDataElements(int rgb, Object pixel)
Returns a data element array representation of a pixel in this ColorModel , given an integer pixel representation in the default RGB color model.
ObjectgetDataElements(int[] components, int offset, Object obj)
Returns a data element array representation of a pixel in this ColorModel , given an array of unnormalized color/alpha components.
ObjectgetDataElements(float[] normComponents, int normOffset, Object obj)
Returns a data element array representation of a pixel in this ColorModel , given an array of normalized color/alpha components.
intgetGreen(int pixel)
Returns the green color component for the specified pixel, scaled from 0 to 255 in the default RGB ColorSpace, sRGB.
intgetGreen(Object inData)
Returns the green color component for the specified pixel, scaled from 0 to 255 in the default RGB ColorSpace , sRGB.
float[]getNormalizedComponents(int[] components, int offset, float[] normComponents, int normOffset)
Returns an array of all of the color/alpha components in normalized form, given an unnormalized component array.
intgetNumColorComponents()
Returns the number of color components in this ColorModel .
intgetNumComponents()
Returns the number of components, including alpha, in this ColorModel .
intgetPixelSize()
Returns the number of bits per pixel described by this ColorModel .
intgetRed(int pixel)
Returns the red color component for the specified pixel, scaled from 0 to 255 in the default RGB ColorSpace, sRGB.
intgetRed(Object inData)
Returns the red color component for the specified pixel, scaled from 0 to 255 in the default RGB ColorSpace , sRGB.
intgetRGB(int pixel)
Returns the color/alpha components of the pixel in the default RGB color model format.
intgetRGB(Object inData)
Returns the color/alpha components for the specified pixel in the default RGB color model format.
ColorModelgetRGBdefault()
Returns a DirectColorModel that describes the default format for integer RGB values used in many of the methods in the AWT image interfaces for the convenience of the programmer.
intgetTransferType()
Returns the transfer type of this ColorModel .
intgetTransparency()
Returns the transparency.
int[]getUnnormalizedComponents(float[] normComponents, int normOffset, int[] components, int offset)
Returns an array of all of the color/alpha components in unnormalized form, given a normalized component array.
booleanhasAlpha()
Returns whether or not alpha is supported in this ColorModel .
StringtoString()
Returns the String representation of the contents of this ColorModel object.