public abstract class ColorSpace extends Object implements Serializable
Note: In this Profile, the ColorSpace class only supports the sRGB color space.
sRGB is a proposed standard RGB color space. For more information, see http://www.w3.org/pub/WWW/Graphics/Color/sRGB.html .
| Modifier and Type | Field and Description |
|---|---|
static int |
CS_sRGB
The sRGB color space defined at
http://www.w3.org/pub/WWW/Graphics/Color/sRGB.html
.
|
static int |
TYPE_RGB
Any of the family of RGB color spaces.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ColorSpace(int type,
int numcomponents)
Constructs a ColorSpace object given a color space type
and the number of components.
|
| Modifier and Type | Method and Description |
|---|---|
static ColorSpace |
getInstance(int colorspace)
Returns a ColorSpace representing one of the specific
predefined color spaces.
|
String |
getName(int idx)
Returns the name of the component given the component index.
|
int |
getNumComponents()
Returns the number of components of this ColorSpace.
|
int |
getType()
Returns the color space type of this ColorSpace.
|
boolean |
isCS_sRGB()
Returns true if the ColorSpace is CS_sRGB.
|
public static final int TYPE_RGB
public static final int CS_sRGB
protected ColorSpace(int type,
int numcomponents)
type - One of the ColorSpace type constants.numcomponents - The number of components in the color space.public static ColorSpace getInstance(int colorspace)
colorspace - a specific color space identified by one of
the predefined class constantsColorSpace object.public boolean isCS_sRGB()
true if this is a CS_sRGB color
space, false if it is not.public int getType()
ColorSpace.public int getNumComponents()
ColorSpace.public String getName(int idx)
idx - The component index.Copyright © 2012. All Rights Reserved.