| Package | Description |
|---|---|
| java.awt |
Contains all of the classes for creating user interfaces and for painting graphics and images.
|
| java.awt.color |
Provides classes for color spaces.
|
| java.awt.image |
Provides classes for creating and modifying images.
|
| javax.imageio |
The main package of the Java Image I/O API.
|
| Modifier and Type | Method and Description |
|---|---|
ColorSpace |
Color.getColorSpace()
Returns the
ColorSpace of this
Color.
|
| Modifier and Type | Method and Description |
|---|---|
float[] |
Color.getColorComponents(ColorSpace
Returns a
float array containing only the color components of the
Color in the
ColorSpace specified by the
cspace parameter.
|
float[] |
Color.getComponents(ColorSpace
Returns a
float array containing the color and alpha components of the
Color, in the
ColorSpace specified by the
cspace parameter.
|
| Constructor and Description | |
|---|---|
Color(ColorSpace
Creates a color in the specified
ColorSpace with the color components specified in the
float array and the specified alpha.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ICC_ColorSpace
The ICC_ColorSpace class is an implementation of the abstract ColorSpace class.
|
| Modifier and Type | Method and Description |
|---|---|
static ColorSpace |
ColorSpace.getInstance(int colorspace)
Returns a ColorSpace representing one of the specific predefined color spaces.
|
| Modifier and Type | Method and Description |
|---|---|
ColorSpace |
ColorModel.getColorSpace()
Returns the
ColorSpace associated with this
ColorModel.
|
| Constructor and Description | |
|---|---|
ColorConvertOp(ColorSpace
Constructs a new ColorConvertOp from two ColorSpace objects.
|
|
ColorConvertOp(ColorSpace
Constructs a new ColorConvertOp from a ColorSpace object.
|
|
ColorModel(int pixel_bits, int[] bits, ColorSpace
Constructs a
ColorModel that translates pixel values to color/alpha components.
|
|
ComponentColorModel(ColorSpace
Constructs a
ComponentColorModel from the specified parameters.
|
|
ComponentColorModel(ColorSpace
Constructs a
ComponentColorModel from the specified parameters.
|
|
DirectColorModel(ColorSpace
Constructs a
DirectColorModel from the specified parameters.
|
|
PackedColorModel(ColorSpace
Constructs a
PackedColorModel from a color mask array, which specifies which bits in an
int pixel representation contain each of the color samples, and an alpha mask.
|
|
PackedColorModel(ColorSpace
Constructs a
PackedColorModel from the specified masks which indicate which bits in an
int pixel representation contain the alpha, red, green and blue color samples.
|
| Modifier and Type | Method and Description |
|---|---|
static ImageTypeSpecifier |
ImageTypeSpecifier.createBanded(ColorSpace
Returns a specifier for a banded image format that will use a
ComponentColorModel and a
BandedSampleModel to store each channel in a separate array.
|
static ImageTypeSpecifier |
ImageTypeSpecifier.createInterleaved(ColorSpace
Returns a specifier for an interleaved image format that will use a
ComponentColorModel and a
PixelInterleavedSampleModel to store each pixel component in a separate byte, short, or int.
|
static ImageTypeSpecifier |
ImageTypeSpecifier.createPacked(ColorSpace
Returns a specifier for a packed image format that will use a
DirectColorModel and a packed
SampleModel to store each pixel packed into in a single byte, short, or int.
|