[JAVA2D] Problem rendering text with affine transforms

2009-03-24 Thread java2d
Hi all, Couldn't find a specific thread addressing this, so I'll post a new one. It may just be that I am still naive about Java2D... I have a simple window which renders stuff and draws a grid on top. I've recently added code which renders labels for the grid lines; this works fine, except

[JAVA2D] Transparency rendering problems

2009-03-24 Thread java2d
Hi all, I have a weird problem which may be a bug, but hopefully has a solution. I am drawing a histogram whose bins are coloured according to an arbitrary colour map. This involves drawing a series of filled rectangles whose height is proportionally to the frequency of the bin, and then

Re: [JAVA2D] Problem rendering text with affine transforms

2009-03-24 Thread java2d
With setTransform(transform), you are completely replacing the existing transform. Use [b]Graphics2D.transform(transform)[/b] instead, to preserve the transformation values that have been previously set by the paint mechanism. Piet [Message sent by forum member 'pietblok' (pietblok)]

Re: [JAVA2D] Transparency rendering problems

2009-03-24 Thread Jim Graham
This is probably due to the fact that we use different rendering pipelines in some cases when the colors are translucent (for example, we may use X11 requests to render on Linux and Solaris when the colors are solid, and then we may use readback, modify pixels, writeback mechanisms to deal