| 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  ColorSpaceof thisColor. | 
| Modifier and Type | Method and Description | 
|---|---|
| float[] | Color. getColorComponents(ColorSpace cspace,
                  float[] compArray)Returns a  floatarray containing only the color
 components of theColorin theColorSpacespecified by thecspaceparameter. | 
| float[] | Color. getComponents(ColorSpace cspace,
             float[] compArray)Returns a  floatarray containing the color and alpha
 components of theColor, in theColorSpacespecified by thecspaceparameter. | 
| Constructor and Description | 
|---|
| Color(ColorSpace cspace,
     float[] components,
     float alpha)Creates a color in the specified  ColorSpacewith the color components specified in thefloatarray and the specified alpha. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | ICC_ColorSpaceThe 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  ColorSpaceassociated with thisColorModel. | 
| Constructor and Description | 
|---|
| ColorConvertOp(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. | 
| ColorModel(int pixel_bits,
          int[] bits,
          ColorSpace cspace,
          boolean hasAlpha,
          boolean isAlphaPremultiplied,
          int transparency,
          int transferType)Constructs a  ColorModelthat translates pixel values
 to color/alpha components. | 
| ComponentColorModel(ColorSpace colorSpace,
                   boolean hasAlpha,
                   boolean isAlphaPremultiplied,
                   int transparency,
                   int transferType)Constructs a  ComponentColorModelfrom the specified
 parameters. | 
| ComponentColorModel(ColorSpace colorSpace,
                   int[] bits,
                   boolean hasAlpha,
                   boolean isAlphaPremultiplied,
                   int transparency,
                   int transferType)Constructs a  ComponentColorModelfrom the specified
 parameters. | 
| DirectColorModel(ColorSpace space,
                int bits,
                int rmask,
                int gmask,
                int bmask,
                int amask,
                boolean isAlphaPremultiplied,
                int transferType)Constructs a  DirectColorModelfrom the specified
 parameters. | 
| PackedColorModel(ColorSpace space,
                int bits,
                int[] colorMaskArray,
                int alphaMask,
                boolean isAlphaPremultiplied,
                int trans,
                int transferType)Constructs a  PackedColorModelfrom 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 a  PackedColorModelfrom the specified
 masks which indicate which bits in anintpixel
 representation contain the alpha, red, green and blue color samples. | 
| Modifier and Type | Method and Description | 
|---|---|
| static 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 a
  ComponentColorModeland aBandedSampleModelto 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 a  ComponentColorModeland aPixelInterleavedSampleModelto 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 a
  DirectColorModeland a packedSampleModelto store each pixel packed into in a
 single byte, short, or int. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2017, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.