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 DrawRect(X as Integer, Y as Integer, iWidth as Integer, iHeight as Integer, bDrawBackground as Boolean, bFill as Boolean)

  • Draw a Rectangle to the screen or the Background.

  • X - The X location of the upper left corner of the Rectangle

  • Y - The Y location of the upper left corner of the Rectangle

  • iWidth - The width of the Rectangle

  • iHeight - The height of the Rectangle

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

  • bFill - New in version 2.1.0.0!  Set to True to Fill the Ellipse with the current Draw Color

Comments: Uses the color set in DrawSetDrawColor

 

Example:

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

GameWindow1.DrawRect(100, 100, 30, 30, True, True)