Guest mcerk Posted June 17, 2002 Posted June 17, 2002 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 Quote
*Gurus* divil Posted June 17, 2002 *Gurus* Posted June 17, 2002 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. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Guest mcerk Posted June 18, 2002 Posted June 18, 2002 ok thank you I'll change it with some mathematics then :) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.