Java java.awt.color ColorSpace fields, constructors, methods, implement or subclass

Example usage for Java java.awt.color ColorSpace fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.awt.color ColorSpace.

The text is from its open source code.

Field

intTYPE_RGB
Any of the family of RGB color spaces.
intTYPE_GRAY
Any of the family of GRAY color spaces.
intTYPE_CMYK
Any of the family of CMYK color spaces.
intCS_sRGB
The sRGB color space defined at http://www.w3.org/pub/WWW/Graphics/Color/sRGB.html.
intCS_LINEAR_RGB
A built-in linear RGB color space.
intCS_CIEXYZ
The CIEXYZ conversion color space defined above.
intCS_GRAY
The built-in linear gray scale color space.

Method

ColorSpacegetInstance(int colorspace)
Returns a ColorSpace representing one of the specific predefined color spaces.
intgetNumComponents()
Returns the number of components of this ColorSpace.
intgetType()
Returns the color space type of this ColorSpace (for example TYPE_RGB , TYPE_XYZ , ...).
booleanisCS_sRGB()
Returns true if the ColorSpace is CS_sRGB .
float[]toRGB(float[] colorvalue)
Transforms a color value assumed to be in this ColorSpace into a value in the default CS_sRGB color space.