Java Example Program/ Sample Source Code
import java.awt.AWTException;
import java.awt.HeadlessException;
import java.awt.color.ICC_Profile;
import java.io.ByteArrayOutputStream;
import java.io.FileInputStream;
import java.io.IOException;
public class Write_ICC_Profile1 {
public static void main(String[] a) throws IOException, HeadlessException, AWTException {
ICC_Profile cmyk_profile = ICC_Profile.getInstance("CMYK.pf");
cmyk_profile.getColorSpaceType();
cmyk_profile.getData();
cmyk_profile.getData(5);
ICC_Profile.getInstance(new byte[]{0});
ICC_Profile.getInstance(new FileInputStream("c:\\data\\input-text.txt"));
ICC_Profile.getInstance(0);
cmyk_profile.getMajorVersion();
cmyk_profile.getMinorVersion();
cmyk_profile.getNumComponents();
cmyk_profile.getPCSType();
cmyk_profile.getProfileClass();
cmyk_profile.setData(0, new byte[]{0});
cmyk_profile.write(new ByteArrayOutputStream());
cmyk_profile.write("test");
}
} |
|
|