/** * Returns an instance of an uncalibrated CMYK color space. * @return CMYKColorSpace the requested color space object * @deprecated Use {@link ColorSpaces#getDeviceCMYKColorSpace()} instead. */ @Deprecated public static DeviceCMYKColorSpace getInstance() { return ColorSpaces.getDeviceCMYKColorSpace(); }
/** * Creates a color instance representing a device-specific CMYK color. An sRGB value * is calculated from the CMYK colors but it may not correctly represent the given CMYK * values. * @param cmykComponents the CMYK components * @return the device-specific color */ public static Color createCMYKColor(float[] cmykComponents) { DeviceCMYKColorSpace cmykCs = ColorSpaces.getDeviceCMYKColorSpace(); Color cmykColor = new ColorWithAlternatives(cmykCs, cmykComponents, 1.0f, null); return cmykColor; }
if (isPseudoProfile(iccProfileName)) { if (CMYK_PSEUDO_PROFILE.equalsIgnoreCase(iccProfileName)) { colorSpace = ColorSpaces.getDeviceCMYKColorSpace(); } else if (SEPARATION_PSEUDO_PROFILE.equalsIgnoreCase(iccProfileName)) { colorSpace = new NamedColorSpace(args[5], sRGB,
ColorSpace.CS_LINEAR_RGB); } else if (numComponents == 4) { colorSpace = ColorSpaces.getDeviceCMYKColorSpace(); } else { throw new ImageException("Unsupported ColorSpace for image "
} else { if (c.getNumberOfColors() == 4) { DeviceCMYKColorSpace cmykCs = ColorSpaces.getDeviceCMYKColorSpace(); float[] comps = new float[4]; for (int i = 0; i < 4; i++) {
} else { if (c.getNumberOfColors() == 4) { DeviceCMYKColorSpace cmykCs = ColorSpaces.getDeviceCMYKColorSpace(); float[] comps = new float[4]; for (int i = 0; i < 4; i++) {
} else { if (c.getNumberOfColors() == 4) { DeviceCMYKColorSpace cmykCs = ColorSpaces.getDeviceCMYKColorSpace(); float[] comps = new float[4]; for (int i = 0; i < 4; i++) {