public static ColorModel createYBRFullColorModel(int bits, int dataType, Attributes ds) { return new ComponentColorModel( new YBRColorSpace(createRGBColorSpace(ds), YBR.FULL), new int[] { bits, bits, bits }, false, // hasAlpha false, // isAlphaPremultiplied Transparency.OPAQUE, dataType); }
@Override public float[] fromCIEXYZ(float[] xyzvalue) { return fromRGB(csRGB.fromCIEXYZ(xyzvalue)); } }
@Override public float[] toCIEXYZ(float[] colorvalue) { return csRGB.toCIEXYZ(toRGB(colorvalue)); }
@Override public float[] toCIEXYZ(float[] colorvalue) { return csRGB.toCIEXYZ(toRGB(colorvalue)); }
public static ColorModel createYBRFullColorModel(int bits, int dataType, Attributes ds) { return new ComponentColorModel( new YBRColorSpace(createRGBColorSpace(ds), YBR.FULL), new int[] { bits, bits, bits }, false, // hasAlpha false, // isAlphaPremultiplied Transparency.OPAQUE, dataType); }
@Override public float[] fromCIEXYZ(float[] xyzvalue) { return fromRGB(csRGB.fromCIEXYZ(xyzvalue)); } }
public static ColorModel createYBRColorModel(int bits, int dataType, Attributes ds, YBR ybr, ColorSubsampling subsampling) { return new SampledComponentColorModel( new YBRColorSpace(createRGBColorSpace(ds), ybr), subsampling); }
public static ColorModel createYBRColorModel(int bits, int dataType, Attributes ds, YBR ybr, ColorSubsampling subsampling) { return new SampledComponentColorModel( new YBRColorSpace(createRGBColorSpace(ds), ybr), subsampling); }