The Java 2D TM API provides support for high-quality color output that is easy to use and allows advanced clients to make sophisticated use of color. A ColorSpace represents a system for measuring colors, typically using three separate numerical values or components. A Color is a fixed color, defined in terms of its components in a particular ColorSpace . To draw a Shape in a color, such as red, you pass a Color object representing that color to the Graphics2D context.
Color is defined in the java.awt package.
A ColorModel describes a particular way that pixel values are mapped to colors. A ColorModel is typically associated with an Image or BufferedImage and provides the information necessary to correctly interpret the pixel values. ColorModel is defined in the java.awt.image package. Inc. All Rights Reserved.