469,631 Members | 1,776 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,631 developers. It's quick & easy.

how to draw a dotted line???

I want to draw a dotted line.So how to colour the pixel with distance?(like ..... )
Jan 24 '07 #1
3 3324
16,027 Expert Mod 8TB
You'll have to give more details than that.

I assume you are referring to your previous problem with drawing graphics using javascript.

See the documentation. It describes how to draw dotted lines by setting the stroke:
Expand|Select|Wrap|Line Numbers
  1. jg.setStroke(Stroke.DOTTED);
Jan 24 '07 #2
Thanks.I would like to colour the pixels with distance maintaining.But according to the library width of dotted lines is always 1 pixel.So it also becomes same as a line.
Jan 24 '07 #3
16,027 Expert Mod 8TB
I'm sorry I don't quite understand what you mean by "colour pixels" and "distance maintaining"? If you set the colour, it should be a different colour from black. The documentation does indeed say 1 pixel for a dotted line. I'm afraid you can't change that unless you edit the actual Javascript library functions, but I would advise against that.

What do you mean by saying that it appears like a line? The difference is that it is dotted. If you draw them both side by side, the line with 1 pixel thickness is noticeably darker than the dotted line.
Jan 24 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by news-server | last post: by
2 posts views Thread by melanieab | last post: by
4 posts views Thread by jessy | last post: by
2 posts views Thread by Brian Kendig | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.