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 DrawBackgroundZoom(dPercent as Double)

  • dPercent - The amount to zoom.  Pass this value as the actual percentage.  For example, send 50 to zoom to 50% of the image size.  Send 200 to scale the image to twice it's original size.  This amount is NOT cumulative--it is the actual amount to zoom.

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:  Zoom to 150%

GameWindow1.DrawBackgroundZoom(150)