Re: [JAVA2D] GlyphVectors

2006-06-05 Thread Phil Race
For text display issues where you are using using the Graphic2D class and TextLayout and GlyphVector this is the right place. But there is a Java Internationalization forum http://forum.java.sun.com/forum.jspa?forumID=16 which may be a more appropriate forum for other text processing questions

Re: [JAVA2D] Smooth Gradients

2006-06-05 Thread Jim Graham
Hi Ben, What is the ColorModel in the destination you are rendering to? What kind of device are you displaying on? Can you send a test case that demonstrates it? ...jim Ben Galbraith wrote: Hi all, I'm seeking to create a smooth gradient background for a JComponent

Re: [JAVA2D] BMPImageReader fails if the Destination is set

2006-06-05 Thread java2d
Yes, I see that the BMPImageReader only supports TYP_3BYTE_BGR. It's too bad that the generic Image IO framework doesn't handle the sample model conversion to read into a generic BufferedImage automatically. Either way, as you say, it isn't failing with the proper exception. [Message sent by

Re: [JAVA2D] Smooth Gradients

2006-06-05 Thread java2d
I was bored, so here's a test case... I can see the banding, just barely. I suppose some monitors will make it look worse than others. In any case I think the solution is dithering, but you will have to do it manually, simply supplying the rendering hint