How to make dotted strokes on a canvas?

39 views
Skip to first unread message

membersound

unread,
Mar 18, 2013, 12:52:48 PM3/18/13
to google-we...@googlegroups.com
Hi,

how can I set the stroke style when drawing on a canvas? (trying to make a rectangle with dotted border)

Looking for something like: context.setBorder("1px dotted black");

Samyem Tuladhar

unread,
Mar 18, 2013, 1:20:16 PM3/18/13
to google-we...@googlegroups.com

Kody

unread,
Mar 18, 2013, 4:44:54 PM3/18/13
to google-we...@googlegroups.com
Hm ok that might be a nice solution for a straight line.
But what about curves? What if I eg create a Rectangle with round corners (which I want in the long).

I thought there might be something to tell a line it should always be dashed/spaced.

Cause the link you provided is probably not adaptable to any arc or bezier methods...
--
You received this message because you are subscribed to a topic in the Google Groups "Google Web Toolkit" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/lqM6BW6IGvU/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to google-web-tool...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages