@JsType(namespace="xgl.color") public class ColorSpace extends Object
https://en.wikipedia.org/wiki/RGB_color_space
Modifier and Type | Class and Description |
---|---|
static interface |
ColorSpace.GammaCorrection |
Modifier and Type | Field and Description |
---|---|
static ColorSpace |
ADOBE_RGB |
static ColorSpace |
ADOBE_WIDE_GAMUT_RGB |
static ColorSpace |
APPLE_RGB |
static ColorSpace |
COLORMATCH_RGB |
static ColorSpace |
HDTV |
static ColorSpace |
PROPHOTO_RGB |
static ColorSpace |
S_RGB |
static ColorSpace |
UHDTV |
Constructor and Description |
---|
ColorSpace(String description,
double[][] primaries,
WhitePoint whitePoint,
ColorSpace.GammaCorrection toXYZGammaCorrection,
ColorSpace.GammaCorrection toRGBGammaCorrection) |
ColorSpace(String description,
double[][] primaries,
WhitePoint whitePoint,
double gamma) |
Modifier and Type | Method and Description |
---|---|
String |
getDescription() |
double[][] |
getPrimaries() |
WhitePoint |
getWhitePoint() |
RGBColor |
toRGB(XYZColor color) |
XYZColor |
toXYZ(RGBColor color) |
public static final ColorSpace S_RGB
https://en.wikipedia.org/wiki/SRGB
public static final ColorSpace HDTV
https://en.wikipedia.org/wiki/Rec._709
public static final ColorSpace ADOBE_RGB
https://en.wikipedia.org/wiki/Adobe_RGB_color_space
,
http://www.adobe.com/digitalimag/pdfs/AdobeRGB1998.pdf
public static final ColorSpace APPLE_RGB
public static final ColorSpace UHDTV
https://en.wikipedia.org/wiki/Rec._2020
public static final ColorSpace ADOBE_WIDE_GAMUT_RGB
public static final ColorSpace PROPHOTO_RGB
public static final ColorSpace COLORMATCH_RGB
@JsIgnore public ColorSpace(String description, double[][] primaries, WhitePoint whitePoint, double gamma)
primaries
- whitePoint
- gamma
- @JsIgnore public ColorSpace(String description, double[][] primaries, WhitePoint whitePoint, ColorSpace.GammaCorrection toXYZGammaCorrection, ColorSpace.GammaCorrection toRGBGammaCorrection)
primaries
- whitePoint
- gamma
- public String getDescription()
public double[][] getPrimaries()
public WhitePoint getWhitePoint()
Copyright © 2018 Xalys. All rights reserved.