Hi,

I have some questions about how java.awt.Graphics2D handles doubles. I work
on Jazz, a zooming graphics framework. Zooming is supported by setting the
Graphics2D transform (using an AffineTransform with doubles internally).

A problem that we have is when you zoom in or out to extreme distances
Graphics2D eventually chokes and wont draw anything. And this is
understandable since the numbers are running out of resolution at these
large scaling.

What I'm wondering though is what number type (double or float)we are
limited by. Right now all our shapes use doubles internally, with the idea
that we can zoom the farthest this way. But we don't seem to be able to zoom
as far as we think we should, so I'm wondering if Graphics2D just casts
everything to floats internally. When I do a debugging trace it seems like
only PathIterator.currentSegment(float[] coords) is called.

So i'm wondering if Graphics2D does use only floats, or maybe it varies by
VM...? Thanks for any help,

Jesse Grosjean

===========================================================================
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