I know what you mean. I would like to see more comprehensive support for color management in the JDK. Right now all we get is to/fromXYZ() which is defined to be done using relative colorimetric, and to/fromsRGB, which is defined to use perceptual, but these only work on float arrays, and there's no support for saturation or absolute colorimetric, and no way to create an optimized transform between profiles.
It wouldnt be difficult to add, of course the capability is all there in littlecms and exists to some extent in sun.java2d.cmm.*, perhaps it will be considered for a future JDK version. ________________________________ From: [EMAIL PROTECTED] on behalf of Adam Augusta Sent: Sat 14/06/2008 03:04 To: [email protected] Subject: Re: [OpenJDK 2D-Dev] Basic Color Management On Fri, Jun 13, 2008 at 1:26 PM, Dmitri Trembovetski <[EMAIL PROTECTED]> wrote: > java.awt.BufferedImage has a ColorModel with > ColorSpace describing how to interpret the > colors, and which may be defined by ICC profile: > http://java.sun.com/javase/6/docs/api/java/awt/image/ColorModel.html > http://java.sun.com/javase/6/docs/api/java/awt/color/ColorSpace.html By the spec, profiles support four rendering intents, absolute colorimetric, relative colorimetric, perceptual, and saturation. You can define a ColorSpace by an ICC profile, but there's no opportunity to specify a rendering intent. (I know Batik extended ColorSpace to support a rendering intent, but Batik is an SVG library.) Thanks for your response. -Adam
