Prosurv cEZ, Prosurv CE and Prosurv PC - Land Surveying Data Collection

Prosurv Pocket Quads™ & Prosurv Imaging™ - 7.5' USGS Topo Quad Sheet Software

Call 888-647-9500 Toll-free or e-mail us at sales@prosurv.com  today!

Hit Counter

 

ASprite.NET Version 2.1.0.0

 

Public Sub DrawLine(X1 as Integer, Y1 as Integer, X2 as Integer, Y2 as Integer, iWidth as Integer, bDrawBackground as Boolean)

  • Draw a Line to the screen or the Background.

  • X1, Y1 - The starting location of the line

  • X2, Y2 - The ending location of the line

  • iWidth - The width of the line to be drawn

  • bDrawBackground - Set this to True to make the Line a permanent part of the Background image

Comments: Uses the color set in DrawSetDrawColor

 

Example:

GameWindow1.DrawSetDrawColor(0, 0, 0) 'Set to Black

GameWindow1.DrawLine(100, 100, 300, 300, 5, True)