Picturebox Scale method

  • Thread starter Thread starter mcerk
  • Start date Start date
M

mcerk

Guest
Hi in VB6 there was a picturebox scale method.

I have a picturebox loaded wint a map of my country.

In VB6 I changed picturebox's coordinate system with scale method.

I need that, becouse this is a geotechnical coordiate system and every data I have to draw on this map is written in this system.

But help says that there is no eqvivalent to this method. That the only coordinate system in picturebox is default one (with pixels).

I could write a procedure to convert pixels to this system, but what if I resize picturebox?

I used this coordinate system:
Picture1.Scale (375050, 194050)-(624250, 29850)

Please help...

Thank you.


Matej
 
Everything in .NET graphics is in pixels. If you want some other coordinate system you will have to implement it yourself, or check out the Graphics.ScaleTransform method. I hope you know matrices.
 
Back
Top