public class BogusColorSpace extends ColorSpace
ColorSpace
to enable ColorModel
for image data which do not have an innate color representation.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
Constructor and Description |
---|
BogusColorSpace(int numComponents)
Constructs a bogus
ColorSpace . |
Modifier and Type | Method and Description |
---|---|
float[] |
fromCIEXYZ(float[] xyzvalue) |
float[] |
fromRGB(float[] rgbvalue) |
float[] |
toCIEXYZ(float[] colorvalue) |
float[] |
toRGB(float[] colorvalue) |
getInstance, getMaxValue, getMinValue, getName, getNumComponents, getType, isCS_sRGB
public BogusColorSpace(int numComponents)
ColorSpace
.numComponents
- The number of components in the
ColorSpace
.IllegalArgumentException
- if numComponents
is less than 1.public float[] toRGB(float[] colorvalue)
toRGB
in class ColorSpace
public float[] fromRGB(float[] rgbvalue)
fromRGB
in class ColorSpace
public float[] toCIEXYZ(float[] colorvalue)
toCIEXYZ
in class ColorSpace
public float[] fromCIEXYZ(float[] xyzvalue)
fromCIEXYZ
in class ColorSpace
Copyright © 2015–2022 SCIFIO. All rights reserved.