Im trying to use the paint method to produce the following output:
______
______
______
______
______
______
______
______
______
______
etc
i have selected the correct pixels (co-ordinates) from where i want the first line and where i want the last line and i am trying to use a for loop so it does all the lines in one statement. (each line is 10 pixels apart)
However, i cant seem to produce more than one line (the first line) and wondered if someone could show me exactly how to produce this. This is my code, if someone could edit that and show me i would be extremely grateful.
Int startx, stopx, y;
for(startx = 139; stopx <= 530; y=+10)
{
g.drawline(startx,y,stopx,y);
}


Reply With Quote


Bookmarks