Uses of Class
java.awt.image.ColorModel
Packages that use ColorModel
Package
Description
Contains all of the classes for creating user interfaces and for painting
graphics and images.
Provides classes for creating and modifying images.
The main package of the Java Image I/O API.
-
Uses of ColorModel in java.awt
Methods in java.awt that return ColorModelModifier and TypeMethodDescriptionComponent.getColorModel()Gets the instance ofColorModelused to display the component on the output device.abstract ColorModelGraphicsConfiguration.getColorModel()Returns theColorModelassociated with thisGraphicsConfiguration.abstract ColorModelGraphicsConfiguration.getColorModel(int transparency) Returns theColorModelassociated with thisGraphicsConfigurationthat supports the specified transparency.PaintContext.getColorModel()Returns theColorModelof the output.abstract ColorModelToolkit.getColorModel()Determines the color model of this toolkit's screen.Methods in java.awt with parameters of type ColorModelModifier and TypeMethodDescriptionAlphaComposite.createContext(ColorModel srcColorModel, ColorModel dstColorModel, RenderingHints hints) Creates a context for the compositing operation.Color.createContext(ColorModel cm, Rectangle r, Rectangle2D r2d, AffineTransform xform, RenderingHints hints) Creates and returns aPaintContextused to generate a solid color field pattern.Composite.createContext(ColorModel srcColorModel, ColorModel dstColorModel, RenderingHints hints) Creates a context containing state that is used to perform the compositing operation.GradientPaint.createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints) Creates and returns aPaintContextused to generate a linear color gradient pattern.LinearGradientPaint.createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform transform, RenderingHints hints) Creates and returns aPaintContextused to generate a linear color gradient pattern.Paint.createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints) Creates and returns aPaintContextused to generate the color pattern.RadialGradientPaint.createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform transform, RenderingHints hints) Creates and returns aPaintContextused to generate a circular radial color gradient pattern.TexturePaint.createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints) Creates and returns aPaintContextused to generate a tiled image pattern. -
Uses of ColorModel in java.awt.image
Subclasses of ColorModel in java.awt.imageModifier and TypeClassDescriptionclassAColorModelclass that works with pixel values that represent color and alpha information as separate samples and that store each sample in a separate data element.classTheDirectColorModelclass is aColorModelclass 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.classTheIndexColorModelclass is aColorModelclass that works with pixel values consisting of a single sample that is an index into a fixed colormap in the default sRGB color space.classThePackedColorModelclass is an abstractColorModelclass 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.Fields in java.awt.image declared as ColorModelModifier and TypeFieldDescriptionprotected ColorModelRGBImageFilter.newmodelTheColorModelwith which to replaceorigmodelwhen the user callssubstituteColorModel.protected ColorModelRGBImageFilter.origmodelMethods in java.awt.image that return ColorModelModifier and TypeMethodDescriptionColorModel.coerceData(WritableRaster raster, boolean isAlphaPremultiplied) Forces the raster data to match the state specified in theisAlphaPremultipliedvariable, assuming the data is currently correctly described by thisColorModel.ComponentColorModel.coerceData(WritableRaster raster, boolean isAlphaPremultiplied) Forces the raster data to match the state specified in theisAlphaPremultipliedvariable, assuming the data is currently correctly described by thisColorModel.final ColorModelDirectColorModel.coerceData(WritableRaster raster, boolean isAlphaPremultiplied) Forces the raster data to match the state specified in theisAlphaPremultipliedvariable, assuming the data is currently correctly described by thisColorModel.BufferedImage.getColorModel()Returns theColorModel.PixelGrabber.getColorModel()Get the ColorModel for the pixels stored in the array.RenderedImage.getColorModel()Returns the ColorModel associated with this image.static ColorModelColorModel.getRGBdefault()Returns aDirectColorModelthat 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.Methods in java.awt.image with parameters of type ColorModelModifier and TypeMethodDescriptionAffineTransformOp.createCompatibleDestImage(BufferedImage src, ColorModel destCM) Creates a zeroed destination image with the correct size and number of bands.BufferedImageOp.createCompatibleDestImage(BufferedImage src, ColorModel destCM) Creates a zeroed destination image with the correct size and number of bands.ColorConvertOp.createCompatibleDestImage(BufferedImage src, ColorModel destCM) Creates a zeroed destination image with the correct size and number of bands, given this source.ConvolveOp.createCompatibleDestImage(BufferedImage src, ColorModel destCM) Creates a zeroed destination image with the correct size and number of bands.LookupOp.createCompatibleDestImage(BufferedImage src, ColorModel destCM) Creates a zeroed destination image with the correct size and number of bands.RescaleOp.createCompatibleDestImage(BufferedImage src, ColorModel destCM) Creates a zeroed destination image with the correct size and number of bands.voidMemoryImageSource.newPixels(byte[] newpix, ColorModel newmodel, int offset, int scansize) Changes to a new byte array to hold the pixels for this image.voidMemoryImageSource.newPixels(int[] newpix, ColorModel newmodel, int offset, int scansize) Changes to a new int array to hold the pixels for this image.voidBufferedImageFilter.setColorModel(ColorModel model) Filters the information provided in thesetColorModelmethod of theImageConsumerinterface.voidImageConsumer.setColorModel(ColorModel model) Sets the ColorModel object used for the majority of the pixels reported using the setPixels method calls.voidImageFilter.setColorModel(ColorModel model) Filter the information provided in the setColorModel method of the ImageConsumer interface.voidPixelGrabber.setColorModel(ColorModel model) The setColorModel method is part of the ImageConsumer API which this class must implement to retrieve the pixels.voidRGBImageFilter.setColorModel(ColorModel model) 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.voidAreaAveragingScaleFilter.setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int off, int scansize) 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.voidAreaAveragingScaleFilter.setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int off, int scansize) 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.voidBufferedImageFilter.setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int off, int scansize) Filters the information provided in thesetPixelsmethod of theImageConsumerinterface which takes an array of bytes.voidBufferedImageFilter.setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int off, int scansize) Filters the information provided in thesetPixelsmethod of theImageConsumerinterface which takes an array of integers.voidCropImageFilter.setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int off, int scansize) 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.voidCropImageFilter.setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int off, int scansize) 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.voidImageConsumer.setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int off, int scansize) Delivers the pixels of the image with one or more calls to this method.voidImageConsumer.setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int off, int scansize) The pixels of the image are delivered using one or more calls to the setPixels method.voidImageFilter.setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int off, int scansize) Filters the information provided in the setPixels method of the ImageConsumer interface which takes an array of bytes.voidImageFilter.setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int off, int scansize) Filters the information provided in the setPixels method of the ImageConsumer interface which takes an array of integers.voidPixelGrabber.setPixels(int srcX, int srcY, int srcW, int srcH, ColorModel model, byte[] pixels, int srcOff, int srcScan) The setPixels method is part of the ImageConsumer API which this class must implement to retrieve the pixels.voidPixelGrabber.setPixels(int srcX, int srcY, int srcW, int srcH, ColorModel model, int[] pixels, int srcOff, int srcScan) The setPixels method is part of the ImageConsumer API which this class must implement to retrieve the pixels.voidReplicateScaleFilter.setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int off, int scansize) 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.voidReplicateScaleFilter.setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int off, int scansize) 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.voidRGBImageFilter.setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int off, int scansize) If the ColorModel object is the same one that has already been converted, then simply passes the pixels through with the converted ColorModel.voidRGBImageFilter.setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int off, int scansize) 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.voidRGBImageFilter.substituteColorModel(ColorModel oldcm, ColorModel newcm) Registers two ColorModel objects for substitution.Constructors in java.awt.image with parameters of type ColorModelModifierConstructorDescriptionBufferedImage(ColorModel cm, WritableRaster raster, boolean isRasterPremultiplied, Hashtable<?, ?> properties) Constructs a newBufferedImagewith a specifiedColorModelandRaster.MemoryImageSource(int w, int h, ColorModel cm, byte[] pix, int off, int scan) Constructs an ImageProducer object which uses an array of bytes to produce data for an Image object.MemoryImageSource(int w, int h, ColorModel cm, byte[] pix, int off, int scan, Hashtable<?, ?> props) Constructs an ImageProducer object which uses an array of bytes to produce data for an Image object.MemoryImageSource(int w, int h, ColorModel cm, int[] pix, int off, int scan) Constructs an ImageProducer object which uses an array of integers to produce data for an Image object.MemoryImageSource(int w, int h, ColorModel cm, int[] pix, int off, int scan, Hashtable<?, ?> props) Constructs an ImageProducer object which uses an array of integers to produce data for an Image object. -
Uses of ColorModel in javax.imageio
Fields in javax.imageio declared as ColorModelModifier and TypeFieldDescriptionprotected ColorModelImageTypeSpecifier.colorModelTheColorModelto be used as a prototype.Methods in javax.imageio that return ColorModelModifier and TypeMethodDescriptionImageTypeSpecifier.getColorModel()Returns theColorModelspecified by this object.Constructors in javax.imageio with parameters of type ColorModelModifierConstructorDescriptionImageTypeSpecifier(ColorModel colorModel, SampleModel sampleModel) Constructs anImageTypeSpecifierdirectly from aColorModeland aSampleModel.