Re: [JAVA2D] A few simple Java 2D questions ...

2006-05-30 Thread Jim Graham
No, by "sub-pixel" I mean geometry which places coordinates at fractional screen coordinates for purposes of expressing the locations of those vertices more accurately than integers would allow. If the display has sub-components that are smaller than a pixel, that could be taken advantage of duri

Re: [JAVA2D] A few simple Java 2D questions ...

2006-05-26 Thread java2d
Hi Jim, By 'sub-pixel' are you referring to the sub-pixels in LCD displays, for example? Does this then not apply to CRT monitors? Thanks, D. [Message sent by forum member 'dodger' (dodger)] http://forums.java.net/jive/thread.jspa?messageID=116601 =

Re: [JAVA2D] A few simple Java 2D questions ...

2006-05-25 Thread java2d
"Why not take a few seconds and try it yourself?" I had done so, without ... thinking. I passed one of the constructors the result of a method with an integer return value. "Depends on the application; double is really important in the mapping/GIS industry, for example." OK. "It sounds like y

Re: [JAVA2D] A few simple Java 2D questions ...

2006-05-24 Thread Jim Graham
Without anti-aliasing, I see no difference between a rectangle at 0 and one at 0.99 (the x coordinate) (this is true with anti-aliasing turned on as well, but I assume it's because there are no curved areas). I do, however, notice a change with an ellipse, as you mentioned. There's a difference

Re: [JAVA2D] A few simple Java 2D questions ...

2006-05-24 Thread java2d
> Hi Chris, > > Thanks very much for your reply. > > "You can pass int parameters to either of the Float > or Double constructors ..." > > You're right, although I thought you'd have to cast > the values first? > Why not take a few seconds and try it yourself? > "As for your second question ..."

Re: [JAVA2D] A few simple Java 2D questions ...

2006-05-24 Thread java2d
Hi Chris, Thanks very much for your reply. "You can pass int parameters to either of the Float or Double constructors ..." You're right, although I thought you'd have to cast the values first? "As for your second question ..." Without anti-aliasing, I see no difference between a rectangle at 0

Re: [JAVA2D] A few simple Java 2D questions ...

2006-05-23 Thread java2d
> Hi, > > 1. I don't understand why Java 2D classes such as > Rectangle2D have float and double constructors, and > not integer constructors? I thought these values > represented pixel coordinates? Are these values > rounded, or what? (I know I'm missing something huge > here, so this is an embarra

[JAVA2D] A few simple Java 2D questions ...

2006-05-23 Thread java2d
Hi, 1. I don't understand why Java 2D classes such as Rectangle2D have float and double constructors, and not integer constructors? I thought these values represented pixel coordinates? Are these values rounded, or what? (I know I'm missing something huge here, so this is an embarrassing questi