Uses of Class
java.awt.color.ColorSpace
Packages that use 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
Methods in java.awt that return ColorSpaceMethods in java.awt with parameters of type ColorSpaceModifier and TypeMethodDescriptionfloat[]Color.getColorComponents(ColorSpace cspace, float[] compArray) Returns afloatarray containing only the color components of theColorin theColorSpacespecified by thecspaceparameter.float[]Color.getComponents(ColorSpace cspace, float[] compArray) Returns afloatarray containing the color and alpha components of theColor, in theColorSpacespecified by thecspaceparameter.Constructors in java.awt with parameters of type ColorSpaceModifierConstructorDescriptionColor(ColorSpace cspace, float[] components, float alpha) Creates a color in the specifiedColorSpacewith the color components specified in thefloatarray and the specified alpha. -
Uses of ColorSpace in java.awt.color
Subclasses of ColorSpace in java.awt.colorModifier and TypeClassDescriptionclassTheICC_ColorSpaceclass is an implementation of the abstractColorSpaceclass.Methods in java.awt.color that return ColorSpaceModifier and TypeMethodDescriptionstatic ColorSpaceColorSpace.getInstance(int cspace) Returns aColorSpacerepresenting one of the specific predefined color spaces. -
Uses of ColorSpace in java.awt.image
Methods in java.awt.image that return ColorSpaceModifier and TypeMethodDescriptionfinal ColorSpaceColorModel.getColorSpace()Returns theColorSpaceassociated with thisColorModel.Constructors in java.awt.image with parameters of type ColorSpaceModifierConstructorDescriptionColorConvertOp(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.protectedColorModel(int pixel_bits, int[] bits, ColorSpace cspace, boolean hasAlpha, boolean isAlphaPremultiplied, int transparency, int transferType) Constructs aColorModelthat translates pixel values to color/alpha components.ComponentColorModel(ColorSpace colorSpace, boolean hasAlpha, boolean isAlphaPremultiplied, int transparency, int transferType) Constructs aComponentColorModelfrom the specified parameters.ComponentColorModel(ColorSpace colorSpace, int[] bits, boolean hasAlpha, boolean isAlphaPremultiplied, int transparency, int transferType) Constructs aComponentColorModelfrom the specified parameters.DirectColorModel(ColorSpace space, int bits, int rmask, int gmask, int bmask, int amask, boolean isAlphaPremultiplied, int transferType) Constructs aDirectColorModelfrom the specified parameters.PackedColorModel(ColorSpace space, int bits, int[] colorMaskArray, int alphaMask, boolean isAlphaPremultiplied, int trans, int transferType) Constructs aPackedColorModelfrom a color mask array, which specifies which bits in anintpixel 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 aPackedColorModelfrom the specified masks which indicate which bits in anintpixel representation contain the alpha, red, green and blue color samples. -
Uses of ColorSpace in javax.imageio
Methods in javax.imageio with parameters of type ColorSpaceModifier and TypeMethodDescriptionstatic ImageTypeSpecifierImageTypeSpecifier.createBanded(ColorSpace colorSpace, int[] bankIndices, int[] bandOffsets, int dataType, boolean hasAlpha, boolean isAlphaPremultiplied) Returns a specifier for a banded image format that will use aComponentColorModeland aBandedSampleModelto store each channel in a separate array.static ImageTypeSpecifierImageTypeSpecifier.createInterleaved(ColorSpace colorSpace, int[] bandOffsets, int dataType, boolean hasAlpha, boolean isAlphaPremultiplied) Returns a specifier for an interleaved image format that will use aComponentColorModeland aPixelInterleavedSampleModelto store each pixel component in a separate byte, short, or int.static ImageTypeSpecifierImageTypeSpecifier.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 aDirectColorModeland a packedSampleModelto store each pixel packed into in a single byte, short, or int.