| Package | Description |
|---|---|
| java.awt |
Contains all of the classes for creating user interfaces and for painting graphics and images.
|
| 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 |
|---|---|
abstract ColorModel |
GraphicsConfiguration.getColorModel()
Returns the
ColorModel associated with this
GraphicsConfiguration.
|
abstract ColorModel |
Toolkit.getColorModel()
Determines the color model of this toolkit's screen.
|
ColorModel |
Component.getColorModel()
Gets the instance of
ColorModel used to display the component on the output device.
|
ColorModel |
PaintContext.getColorModel()
Returns the
ColorModel of the output.
|
abstract ColorModel |
GraphicsConfiguration.getColorModel(int transparency)
Returns the
ColorModel associated with this
GraphicsConfiguration that supports the specified transparency.
|
| Modifier and Type | Method and Description |
|---|---|
CompositeContext |
Composite.createContext(ColorModel
Creates a context containing state that is used to perform the compositing operation.
|
CompositeContext |
AlphaComposite.createContext(ColorModel
Creates a context for the compositing operation.
|
PaintContext |
GradientPaint.createContext(ColorModel
Creates and returns a
PaintContext used to generate a linear color gradient pattern.
|
PaintContext |
LinearGradientPaint.createContext(ColorModel
Creates and returns a
PaintContext used to generate a linear color gradient pattern.
|
PaintContext |
Paint.createContext(ColorModel
Creates and returns a
PaintContext used to generate the color pattern.
|
PaintContext |
Color.createContext(ColorModel
Creates and returns a
PaintContext used to generate a solid color field pattern.
|
PaintContext |
TexturePaint.createContext(ColorModel
Creates and returns a
PaintContext used to generate a tiled image pattern.
|
PaintContext |
RadialGradientPaint.createContext(ColorModel
Creates and returns a
PaintContext used to generate a circular radial color gradient pattern.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ComponentColorModel
A
ColorModel class that works with pixel values that represent color and alpha information as separate samples and that store each sample in a separate data element.
|
class |
DirectColorModel
The
DirectColorModel class is a
ColorModel class that works with pixel values that represent RGB color and alpha information as separate samples and that pack all samples for a single pixel into a single int, short, or byte quantity.
|
class |
IndexColorModel
The
IndexColorModel class is a
ColorModel class that works with pixel values consisting of a single sample that is an index into a fixed colormap in the default sRGB color space.
|
class |
PackedColorModel
The
PackedColorModel class is an abstract
ColorModel class that works with pixel values which represent color and alpha information as separate samples and which pack all samples for a single pixel into a single int, short, or byte quantity.
|
| Modifier and Type | Field and Description |
|---|---|
protected ColorModel |
RGBImageFilter.newmodel
The
ColorModel with which to replace
origmodel when the user calls
substituteColorModel.
|
protected ColorModel |
RGBImageFilter.origmodel
|
| Modifier and Type | Method and Description |
|---|---|
ColorModel |
ComponentColorModel.coerceData(WritableRaster
Forces the raster data to match the state specified in the
isAlphaPremultiplied variable, assuming the data is currently correctly described by this
ColorModel.
|
ColorModel |
DirectColorModel.coerceData(WritableRaster
Forces the raster data to match the state specified in the
isAlphaPremultiplied variable, assuming the data is currently correctly described by this
ColorModel.
|
ColorModel |
ColorModel.coerceData(WritableRaster
Forces the raster data to match the state specified in the
isAlphaPremultiplied variable, assuming the data is currently correctly described by this
ColorModel.
|
ColorModel |
BufferedImage.getColorModel()
Returns the
ColorModel.
|
ColorModel |
RenderedImage.getColorModel()
Returns the ColorModel associated with this image.
|
ColorModel |
PixelGrabber.getColorModel()
Get the ColorModel for the pixels stored in the array.
|
static ColorModel |
ColorModel.getRGBdefault()
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.
|
| Modifier and Type | Method and Description |
|---|---|
BufferedImage |
ConvolveOp.createCompatibleDestImage(BufferedImage
Creates a zeroed destination image with the correct size and number of bands.
|
BufferedImage |
RescaleOp.createCompatibleDestImage(BufferedImage
Creates a zeroed destination image with the correct size and number of bands.
|
BufferedImage |
ColorConvertOp.createCompatibleDestImage(BufferedImage
Creates a zeroed destination image with the correct size and number of bands, given this source.
|
BufferedImage |
AffineTransformOp.createCompatibleDestImage(BufferedImage
Creates a zeroed destination image with the correct size and number of bands.
|
BufferedImage |
BufferedImageOp.createCompatibleDestImage(BufferedImage
Creates a zeroed destination image with the correct size and number of bands.
|
BufferedImage |
LookupOp.createCompatibleDestImage(BufferedImage
Creates a zeroed destination image with the correct size and number of bands.
|
void |
MemoryImageSource.newPixels(byte[] newpix, ColorModel
Changes to a new byte array to hold the pixels for this image.
|
void |
MemoryImageSource.newPixels(int[] newpix, ColorModel
Changes to a new int array to hold the pixels for this image.
|
void |
ImageFilter.setColorModel(ColorModel
Filter the information provided in the setColorModel method of the ImageConsumer interface.
|
void |
ImageConsumer.setColorModel(ColorModel
Sets the ColorModel object used for the majority of the pixels reported using the setPixels method calls.
|
void |
PixelGrabber.setColorModel(ColorModel
The setColorModel method is part of the ImageConsumer API which this class must implement to retrieve the pixels.
|
void |
BufferedImageFilter.setColorModel(ColorModel
Filters the information provided in the
setColorModel method of the
ImageConsumer interface.
|
void |
RGBImageFilter.setColorModel(ColorModel
If the ColorModel is an IndexColorModel and the subclass has set the canFilterIndexColorModel flag to true, we substitute a filtered version of the color model here and wherever that original ColorModel object appears in the setPixels methods.
|
void |
CropImageFilter.setPixels(int x, int y, int w, int h, ColorModel
Determine whether the delivered byte pixels intersect the region to be extracted and passes through only that subset of pixels that appear in the output region.
|
void |
ImageFilter.setPixels(int x, int y, int w, int h, ColorModel
Filters the information provided in the setPixels method of the ImageConsumer interface which takes an array of bytes.
|
void |
ImageConsumer.setPixels(int x, int y, int w, int h, ColorModel
Delivers the pixels of the image with one or more calls to this method.
|
void |
ReplicateScaleFilter.setPixels(int x, int y, int w, int h, ColorModel
Choose which rows and columns of the delivered byte pixels are needed for the destination scaled image and pass through just those rows and columns that are needed, replicated as necessary.
|
void |
PixelGrabber.setPixels(int srcX, int srcY, int srcW, int srcH, ColorModel
The setPixels method is part of the ImageConsumer API which this class must implement to retrieve the pixels.
|
void |
BufferedImageFilter.setPixels(int x, int y, int w, int h, ColorModel
Filters the information provided in the
setPixels method of the
ImageConsumer interface which takes an array of bytes.
|
void |
RGBImageFilter.setPixels(int x, int y, int w, int h, ColorModel
If the ColorModel object is the same one that has already been converted, then simply passes the pixels through with the converted ColorModel.
|
void |
AreaAveragingScaleFilter.setPixels(int x, int y, int w, int h, ColorModel
Combine the components for the delivered byte pixels into the accumulation arrays and send on any averaged data for rows of pixels that are complete.
|
void |
CropImageFilter.setPixels(int x, int y, int w, int h, ColorModel
Determine if the delivered int pixels intersect the region to be extracted and pass through only that subset of pixels that appear in the output region.
|
void |
ImageFilter.setPixels(int x, int y, int w, int h, ColorModel
Filters the information provided in the setPixels method of the ImageConsumer interface which takes an array of integers.
|
void |
ImageConsumer.setPixels(int x, int y, int w, int h, ColorModel
The pixels of the image are delivered using one or more calls to the setPixels method.
|
void |
ReplicateScaleFilter.setPixels(int x, int y, int w, int h, ColorModel
Choose which rows and columns of the delivered int pixels are needed for the destination scaled image and pass through just those rows and columns that are needed, replicated as necessary.
|
void |
PixelGrabber.setPixels(int srcX, int srcY, int srcW, int srcH, ColorModel
The setPixels method is part of the ImageConsumer API which this class must implement to retrieve the pixels.
|
void |
BufferedImageFilter.setPixels(int x, int y, int w, int h, ColorModel
Filters the information provided in the
setPixels method of the
ImageConsumer interface which takes an array of integers.
|
void |
RGBImageFilter.setPixels(int x, int y, int w, int h, ColorModel
If the ColorModel object is the same one that has already been converted, then simply passes the pixels through with the converted ColorModel, otherwise converts the buffer of integer pixels to the default RGB ColorModel and passes the converted buffer to the filterRGBPixels method to be converted one by one.
|
void |
AreaAveragingScaleFilter.setPixels(int x, int y, int w, int h, ColorModel
Combine the components for the delivered int pixels into the accumulation arrays and send on any averaged data for rows of pixels that are complete.
|
void |
RGBImageFilter.substituteColorModel(ColorModel
Registers two ColorModel objects for substitution.
|
| Constructor and Description | |
|---|---|
BufferedImage(ColorModel
Constructs a new
BufferedImage with a specified
ColorModel and
Raster.
|
|
MemoryImageSource(int w, int h, ColorModel
Constructs an ImageProducer object which uses an array of bytes to produce data for an Image object.
|
|
MemoryImageSource(int w, int h, ColorModel
Constructs an ImageProducer object which uses an array of bytes to produce data for an Image object.
|
|
MemoryImageSource(int w, int h, ColorModel
Constructs an ImageProducer object which uses an array of integers to produce data for an Image object.
|
|
MemoryImageSource(int w, int h, ColorModel
Constructs an ImageProducer object which uses an array of integers to produce data for an Image object.
|
| Modifier and Type | Field and Description |
|---|---|
protected ColorModel |
ImageTypeSpecifier.colorModel
The
ColorModel to be used as a prototype.
|
| Modifier and Type | Method and Description |
|---|---|
ColorModel |
ImageTypeSpecifier.getColorModel()
Returns the
ColorModel specified by this object.
|
| Constructor and Description | |
|---|---|
ImageTypeSpecifier(ColorModel
Constructs an
ImageTypeSpecifier directly from a
ColorModel and a
SampleModel.
|