Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scaling a View

Status
Not open for further replies.

graetzd

Technical User
Jun 29, 2001
17
US
Hello Forum Gurus:

Does someone have an example of how to implement an OnDraw() function that will draw a series of polygons in a view such that regardless of how many polygons there are they will all be drawn in the current view size?

Assume that:
1) I can predetermine what the maximum and minimum X and Y values are for all the points within the polygons.
2) The values of the polygon coordinates are in a planimetric system such as State Plane (i.e. they are not device coordinates).

Whatever the current view size is I want all the polygons to be drawn and to occupy as much of the view as possible.

Thank you for any tips or links to similar problems.

David G.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top