Java Example Program / Sample Source Code
import java.awt.color.ICC_ColorSpace;
import java.awt.color.ICC_Profile;
import java.io.IOException;
public class GetInstanceProfileExample {
public static void main(String[] a) throws IOException {
ICC_Profile cmyk_profile = ICC_Profile.getInstance("CMYK.pf");
ICC_Profile profile = new ICC_ColorSpace(cmyk_profile).getProfile();
int profileClass = profile.getProfileClass();
System.out.println("profileClass "+profileClass);
ICC_Profile instance = ICC_Profile.getInstance(ICC_Profile.icHdrCmmId);
System.out.println("instance "+instance);
}
} |
|
|