Hi Brian,
Yes, I can see how that statement is a bit misleading. We do indeed treat a BasicStroke with width <= 1.0 (and no dashing) as a "thin stroke", so in your case (width=0) drawLine() calls will be handled directly by OpenGL. A thin line will be rendered by OpenGL as 1 pixel wide, which is consistent with the spec you mention.
Thanks for pointing this out. I'll see what I can do to clarify the article.
Chris
On Nov 16, 2004, at 8:14 AM, Brian Peterson wrote:
Hi Chris,
I noticed in your article (a very helpful one, BTW), under the "Stroke" section, that drawLine is "sent directly to OpenGL only when there is a thin stroke (i.e. a default BasicStroke with width=1.0)". I commonly use a BasicStroke with width setting of 0, for which the documentation indicates will give me the thinnest stroke supported by the graphics device no matter the scale setting.
Is the condition for sending the drawLine to OpenGL specifically that the width setting is 1, or will 0 work as well?
Brian
-----Original Message----- From: Discussion list for Java 2D API [mailto:[EMAIL PROTECTED] Behalf Of Chris Campbell Sent: Friday, November 12, 2004 4:57 PM To: [EMAIL PROTECTED] Subject: Re: [JAVA2D] Tiger and Opengl
Hi Iulian,
I had sent out a URL earlier in the week pointing to a document I wrote about the ins and outs of the OpenGL-based Java 2D pipeline. Since then, it's been published as a full java.net article (with some minor clarifications made since the blog posting): http://today.java.net/pub/a/today/2004/11/12/graphics2d.html
Thanks, Chris
Iulian Musat wrote:Sorry for breaking in, I am just curious what article wereyou talkingthat promtedabout...
Thanks, -Iulian
Manie Coetzee wrote: [...]
Hi Chris,
Hi Chris,
Cool article by the way. It was actually the articlewith the openglme to dig back into my old java 2d projects and rerun thempipeline enabled.
Thanks, hope it is useful for you.
============================================================== =============To unsubscribe, send email to [EMAIL PROTECTED] andinclude in the bodyof the message "signoff JAVA2D-INTEREST". For generalhelp, send email to[EMAIL PROTECTED] and include in the body of the message "help".
============================================================== ============= 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".
======================================================================= ==== 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".
=========================================================================== 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".