[OpenJDK 2D-Dev] Basic Color Management
Ben Loud
Ben.Loud at rlmgroup.com.au
Sat Jun 14 03:13:02 UTC 2008
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: 2d-dev-bounces at openjdk.java.net on behalf of Adam Augusta
Sent: Sat 14/06/2008 03:04
To: 2d-dev at openjdk.java.net
Subject: Re: [OpenJDK 2D-Dev] Basic Color Management
On Fri, Jun 13, 2008 at 1:26 PM, Dmitri Trembovetski
<Dmitri.Trembovetski at sun.com> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/2d-dev/attachments/20080614/4ac05066/attachment.html>
More information about the 2d-dev
mailing list