473,320 Members | 1,870 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

how to draw a dotted line???

Hi,
I want to draw a dotted line.So how to colour the pixel with distance?(like ..... )
Jan 24 '07 #1
3 3510
acoder
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
acoder
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

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

Similar topics

3
by: news-server | last post by:
Hi, I was wanting to get a dotted line..Such as they have on http://www.e-cbd.com/ What part of the CSS in dreamweaver is this going to be under? By the way..the part I am talking about is...
2
by: melanieab | last post by:
Hi, Before I go into detail, is there any way to force a button to get that dotted box on it that shows it's in focus? Just saying btn1.Focus(); isn't working for me. Btn1 is definitely the thing...
1
by: troy_s11 | last post by:
I am trying to add a dotted line after a text box. The trouble I am having is the data that is in the text box is all different lengths. Therefore, I am either over lapping the dotted line, or I...
4
by: jessy | last post by:
can anybody tell me how to draw a dashed line in c i've drawn a dotted one using a simple for but i can't figure out how to make it dashed ... i need a for loop that is increasing constantly...
0
by: Adam Clauss | last post by:
I have a ListView in which I am attempting to get it to not draw the 'dotted' rectangle around items which are selected. All other drawing should be normal. I am using the listbox in SmallIcon...
9
by: zhaow | last post by:
Hi, All Greetings! I want to develop as appllication that requires a line-drawing function in the blank area between two forms. I have looked up the MSDN, it says that a graphics object need a...
2
by: Brian Kendig | last post by:
I'm trying to make a web page with a restaurant menu on it. Each line on the menu is the name of a dish (left-justified) and that dish's price (right-justified), with a dotted line between them....
6
by: pravinnweb | last post by:
hi i am new to javascript i hav some problem with button in page that is when i set the focus to button the dotted line appear around the button is there any solution to hide that dotted...
2
by: FredZimmerman | last post by:
When I have my black backround for Body and my button is a round .GIF image (actually image has round green button on black backround, whole thing a rectangle), when I click on the button...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.