Java Example Program / Sample Source Code
import java.awt.color.ICC_ColorSpace;
import java.awt.color.ICC_Profile;
import java.io.IOException;
public class GetProfile_ICC_ColorSpace {
public static void main(String[] a) throws IOException {
ICC_Profile cmyk_profile = ICC_Profile.getInstance("CMYK.pf");
ICC_ColorSpace colorSpace = new ICC_ColorSpace(cmyk_profile);
colorSpace.fromCIEXYZ(new float[]{4.3f,3.1f,2.2f});
colorSpace.fromRGB(new float[]{4.3f,3.1f,2.2f});
colorSpace.getMaxValue(0);
colorSpace.getMinValue(0);
colorSpace.getProfile();
colorSpace.toCIEXYZ(new float[]{4.3f,3.1f,2.2f});
colorSpace.toRGB(new float[]{4.3f,3.1f,2.2f});
}
} |
|
|