Re: [OpenJDK 2D-Dev] Basic Color Management

2008-06-13 Thread Andrew Haley
Ben Loud wrote: > 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

Re: [OpenJDK 2D-Dev] Basic Color Management

2008-06-13 Thread Ben Loud
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'

Re: [OpenJDK 2D-Dev] Basic Color Management

2008-06-13 Thread Adam Augusta
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

Re: [OpenJDK 2D-Dev] Basic Color Management

2008-06-13 Thread Dmitri Trembovetski
Have you looked at java.awt.color package? 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/do

Re: [OpenJDK 2D-Dev] Font Metrics in OpenJDK vs Sun JDK

2008-06-13 Thread Ben Loud
Thanks Phil! You were of course, completely right. I rebuilt FreeType with the bytecode interpreter enabled and now both the AWT FontMetrics string width and the TextLayout.getBounds() width match the Sun JDK exactly (and I really mean EXACTLY). The leading is still -1 though. In fact, if

[OpenJDK 2D-Dev] Basic Color Management

2008-06-13 Thread Adam Augusta
I need to do RGB->RGB, RGB->CMYK, CMYK->RGB conversion using source and destination ICC profiles and rendering intents. As far as I can tell, there's no way to do this directly in Java2D or JAI. My understanding is that there are some issues with RGB->CMYK conversion, and while the underlying CMM