You can use the line command, with a pattern, to get the alternating black and white you need. If you need the line to consist of more colors than that, then you'll need to write a line algorithm. I did this a -long- time ago, and the general idea of thi particular method was: Find which difference was greater, x1-x2 or y1-y2. (if the same, it doesn't matter which you pick as the lesser or greater) (We'll say in this example that x1-x2 is greater) Slope = (y1-y2)/(x1-x2) (Lesser difference over greater difference) for count = x1 to x2 (this is the greater distance to travel, by going on it, we won't miss any pixels on the line, nor draw any extra pixels.) putxy count, (count * slope) next count That should do it. I didn't test it here (I don't have the original program) but if you have any problems, email me about it. Please note that it will be *very* slow compared to any built in line routines. If you need faster lines, consider using C and write a DLL or OCX to do the work for you. -Adam Andrew Seddon wrote: > > Hi. > > What I need to do is draw a line from one point on the screen to another. > Chances are it will be diagonal, eg. (10,20) to (100,100). Now this would be > easy if it wasn`t for the fact that the line will have 832 pixels in it that > need plotting along the line. > > I am using VB and any help would really be appreciated. > > Thanks in advance.