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

 

Public Sub DrawBackgroundZoomFitWindow()

  • Fits the entire Background image into the window you defined with CustomWidth and CustomHeight parameters.

Comments:

  • Use the DrawBackgroundGetZoom function to get the actual percentage of zoom, such as 50 or 200 (rather than 0.5 or 2.0).

  • The bStretch parameter for DrawBackgroundImage does not set the zoom amount (for retrieval by the DrawBackgroundGetZoom function).

  • Use the DrawBackgroundZoomFitWindow to fit the image to the CustomWidth and CustomHeight size.  Then, you can retrieve the zoom amount using DrawBackgroundGetZoom.

  • Sprites will work at any zoom amount.

  • Scroll and Zoom can work together.  Sprites are handled internally.  The scroll amount is always based on the original size (100%) of the image.  Therefore, you don't have to modify your program's scroll values when zooming.

Example:  Fit the current image to your screen window, and get the zoom percentage.

 

GameWindow1.DrawBackgroundZoomFitWindow()

ZoomPercent = GameWindow1.DrawBackgroundGetZoom