So if I wanted the fill and draw of the same shape to align properly,
I should stick to one type of Paint?

Yes, and as you discovered through your test case, that may not even be enough because some of our pipelines still don't have agreement between their fills and draws.

Fill/Draw status
------------------------------------------------
Color/Color fine
Gradient/Color appears to be fine**
Color/Gradient gaps and overlaps under some conditions
Gradient/Gradient gaps and overlaps under some conditions

I didn't run your code, but I can believe these results. I believe we use the "wide line" code with a width of 1 pixel when we are drawing gradient lines, but that pipeline has so much math in it that I wouldn't doubt that it fails to match the fill of the same path exactly. For thin lines it would be nice if we hit the same pixels as a simple bresenham line filler would normally hit but that will take a number of changes in our code to realize as it is currently architected.

I'd recommend slightly increasing the line width if you are planning
to do Grad/Grad or mixed rendering to make sure the gaps are
covered.

...jim

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to