public class TwoChannelColorSpace
extends java.awt.color.ColorSpace
Modifier and Type | Field and Description |
---|---|
static int |
CS_2C |
private static int |
NUM_COMPONENTS |
CS_CIEXYZ, CS_GRAY, CS_LINEAR_RGB, CS_PYCC, CS_sRGB, TYPE_2CLR, TYPE_3CLR, TYPE_4CLR, TYPE_5CLR, TYPE_6CLR, TYPE_7CLR, TYPE_8CLR, TYPE_9CLR, TYPE_ACLR, TYPE_BCLR, TYPE_CCLR, TYPE_CMY, TYPE_CMYK, TYPE_DCLR, TYPE_ECLR, TYPE_FCLR, TYPE_GRAY, TYPE_HLS, TYPE_HSV, TYPE_Lab, TYPE_Luv, TYPE_RGB, TYPE_XYZ, TYPE_YCbCr, TYPE_Yxy
Modifier | Constructor and Description |
---|---|
protected |
TwoChannelColorSpace(int type,
int components) |
Modifier and Type | Method and Description |
---|---|
float[] |
fromCIEXYZ(float[] color) |
float[] |
fromRGB(float[] rgb) |
static java.awt.color.ColorSpace |
getInstance(int colorSpace) |
java.lang.String |
getName(int idx) |
int |
getNumComponents() |
int |
getType() |
boolean |
isCS_sRGB() |
float[] |
toCIEXYZ(float[] color) |
float[] |
toRGB(float[] color) |
public static final int CS_2C
private static final int NUM_COMPONENTS
public float[] fromCIEXYZ(float[] color)
fromCIEXYZ
in class java.awt.color.ColorSpace
public float[] fromRGB(float[] rgb)
fromRGB
in class java.awt.color.ColorSpace
public static java.awt.color.ColorSpace getInstance(int colorSpace)
public java.lang.String getName(int idx)
getName
in class java.awt.color.ColorSpace
public int getNumComponents()
getNumComponents
in class java.awt.color.ColorSpace
public int getType()
getType
in class java.awt.color.ColorSpace
public boolean isCS_sRGB()
isCS_sRGB
in class java.awt.color.ColorSpace
public float[] toCIEXYZ(float[] color)
toCIEXYZ
in class java.awt.color.ColorSpace
public float[] toRGB(float[] color)
toRGB
in class java.awt.color.ColorSpace
Copyright © 2017 Open Microscopy Environment