/** * Returns an instance of the device-specific CMYK color space. * @return an instance of the device-specific CMYK color space */ public static synchronized DeviceCMYKColorSpace getDeviceCMYKColorSpace() { if (deviceCMYK == null) { deviceCMYK = new DeviceCMYKColorSpace(); } return deviceCMYK; }
if (cmyk) { ComponentColorModel ccm = new ComponentColorModel( new DeviceCMYKColorSpace(), false, false, 1, DataBuffer.TYPE_BYTE); int[] bands = {0, 1, 2, 3}; PixelInterleavedSampleModel sm = new PixelInterleavedSampleModel(