public static ColorModel createRGBColorModel(int bits, int dataType, Attributes ds) { return new ComponentColorModel( createRGBColorSpace(ds), new int[] { bits, bits, bits }, false, // hasAlpha false, // isAlphaPremultiplied Transparency.OPAQUE, dataType); }
public static ColorModel createRGBColorModel(int bits, int dataType, Attributes ds) { return new ComponentColorModel( createRGBColorSpace(ds), new int[] { bits, bits, bits }, false, // hasAlpha false, // isAlphaPremultiplied Transparency.OPAQUE, dataType); }
public static ColorModel createPaletteColorModel(int bits, int dataType, Attributes ds) { return new PaletteColorModel(bits, dataType, createRGBColorSpace(ds), ds); }
public static ColorModel createPaletteColorModel(int bits, int dataType, Attributes ds) { return new PaletteColorModel(bits, dataType, createRGBColorSpace(ds), ds); }
private static ColorSpace createRGBColorSpace(Attributes ds) { return createRGBColorSpace(ds.getSafeBytes(Tag.ICCProfile)); }
private static ColorSpace createRGBColorSpace(Attributes ds) { return createRGBColorSpace(ds.getSafeBytes(Tag.ICCProfile)); }
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 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); }
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); }
public static ColorModel createYBRColorModel(int bits, int dataType, Attributes ds, YBR ybr, ColorSubsampling subsampling) { return new SampledComponentColorModel( new YBRColorSpace(createRGBColorSpace(ds), ybr), subsampling); }