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.0.0.0

Overloaded

 

Public Sub DrawBackgroundImage(sFileName as String, lX as Integer, lY as Integer, bStretch as Boolean)

  • sFileName - The name of the file to draw to the Background.

  • lX - The X location of the Background to draw the image (from the file) to.

  • lY - The Y location of the Background to draw the image (from the file) to.

  • bStretch - If False the image is drawn directly to the background, without scaling.  If True, the image will be drawn to the background and scaled to fit the custom width and custom height.

Comments: The internal zoom and scroll values are reset to 1 and 0 respectively using this overload.

 

Public Sub DrawBackgroundImage(bmp as Bitmap, lX as Integer, lY as Integer, bStretch as Boolean)

  • bmp - The Bitmap to be drawn

  • lX - The X location of the Background to draw the bitmap to.

  • lY - The Y location of the Background to draw the bitmap to.

  • bStretch - If False the bitmap is drawn directly to the background, without scaling.  If True, the bitmap will be drawn to the background and scaled to fit the custom width and custom height.

Comments: The internal zoom and scroll values are NOT reset using this overload.

 

Examples:

GameWindow1.DrawBackgroundImage("\My Documents\Image1.bmp", 0, 0, False)

Or:

' Set up the background

Dim bmBackDrop As Bitmap = New System.Drawing.Bitmap(System.Reflection.Assembly.GetExecutingAssembly.GetManifestResourceStream("Bounce.backdrop.png"))

GameWindow1.DrawBackgroundImage(bmBackDrop, 0, 0, False)