Uses of Class
java.awt.color.ColorSpace
Package
Description
Contains all of the classes for creating user interfaces and for painting
graphics and images.
Provides classes for color spaces.
Provides classes for creating and modifying images.
The main package of the Java Image I/O API.
-
Uses of ColorSpace in java.awt
Modifier and TypeMethodDescriptionfloat[]
Color.getColorComponents
(ColorSpace cspace, float[] compArray) Returns afloat
array containing only the color components of theColor
in theColorSpace
specified by thecspace
parameter.float[]
Color.getComponents
(ColorSpace cspace, float[] compArray) Returns afloat
array containing the color and alpha components of theColor
, in theColorSpace
specified by thecspace
parameter.ModifierConstructorDescriptionColor
(ColorSpace cspace, float[] components, float alpha) Creates a color in the specifiedColorSpace
with the color components specified in thefloat
array and the specified alpha. -
Uses of ColorSpace in java.awt.color
Modifier and TypeClassDescriptionclass
TheICC_ColorSpace
class is an implementation of the abstractColorSpace
class.Modifier and TypeMethodDescriptionstatic ColorSpace
ColorSpace.getInstance
(int cspace) Returns aColorSpace
representing one of the specific predefined color spaces. -
Uses of ColorSpace in java.awt.image
Modifier and TypeMethodDescriptionfinal ColorSpace
ColorModel.getColorSpace()
Returns theColorSpace
associated with thisColorModel
.ModifierConstructorDescriptionColorConvertOp
(ColorSpace srcCspace, ColorSpace dstCspace, RenderingHints hints) Constructs a new ColorConvertOp from two ColorSpace objects.ColorConvertOp
(ColorSpace cspace, RenderingHints hints) Constructs a new ColorConvertOp from a ColorSpace object.protected
ColorModel
(int pixel_bits, int[] bits, ColorSpace cspace, boolean hasAlpha, boolean isAlphaPremultiplied, int transparency, int transferType) Constructs aColorModel
that translates pixel values to color/alpha components.ComponentColorModel
(ColorSpace colorSpace, boolean hasAlpha, boolean isAlphaPremultiplied, int transparency, int transferType) Constructs aComponentColorModel
from the specified parameters.ComponentColorModel
(ColorSpace colorSpace, int[] bits, boolean hasAlpha, boolean isAlphaPremultiplied, int transparency, int transferType) Constructs aComponentColorModel
from the specified parameters.DirectColorModel
(ColorSpace space, int bits, int rmask, int gmask, int bmask, int amask, boolean isAlphaPremultiplied, int transferType) Constructs aDirectColorModel
from the specified parameters.PackedColorModel
(ColorSpace space, int bits, int[] colorMaskArray, int alphaMask, boolean isAlphaPremultiplied, int trans, int transferType) Constructs aPackedColorModel
from a color mask array, which specifies which bits in anint
pixel representation contain each of the color samples, and an alpha mask.PackedColorModel
(ColorSpace space, int bits, int rmask, int gmask, int bmask, int amask, boolean isAlphaPremultiplied, int trans, int transferType) Constructs aPackedColorModel
from the specified masks which indicate which bits in anint
pixel representation contain the alpha, red, green and blue color samples. -
Uses of ColorSpace in javax.imageio
Modifier and TypeMethodDescriptionstatic ImageTypeSpecifier
ImageTypeSpecifier.createBanded
(ColorSpace colorSpace, int[] bankIndices, int[] bandOffsets, int dataType, boolean hasAlpha, boolean isAlphaPremultiplied) Returns a specifier for a banded image format that will use aComponentColorModel
and aBandedSampleModel
to store each channel in a separate array.static ImageTypeSpecifier
ImageTypeSpecifier.createInterleaved
(ColorSpace colorSpace, int[] bandOffsets, int dataType, boolean hasAlpha, boolean isAlphaPremultiplied) Returns a specifier for an interleaved image format that will use aComponentColorModel
and aPixelInterleavedSampleModel
to store each pixel component in a separate byte, short, or int.static ImageTypeSpecifier
ImageTypeSpecifier.createPacked
(ColorSpace colorSpace, int redMask, int greenMask, int blueMask, int alphaMask, int transferType, boolean isAlphaPremultiplied) Returns a specifier for a packed image format that will use aDirectColorModel
and a packedSampleModel
to store each pixel packed into in a single byte, short, or int.