VB.NET and VB Form.Scale

P

placid

Hi all,

I was just wondering what is the equivalent of Form1.Scale (-160,
-160)-(90, 95) in VB.NET?

The Form1.Scale(...) in the VB.net is not the same as the old VB!


Thanks in advance
 
J

James Parsly

There isn't anything that will work exactly the same way.

You can combine rotation, scaling, and translation to get the same effect
on coordinate systems in VB.net as you had in the old VB, but this will
have additional effects in VB.net that you wouldn't see in old VB.

In particular the scaling and rotation effects will also apply to the
way that text appears and the width of lines that you draw.
There's a hack that allows you to specify a pen width of -1 to draw
lines with a width of 1 pixel. If you want a line 2 pixels wide, you have
to
do a scale transform on the pen that reverses the scale transformation
that you've made to your coordinate system. (I wonder why they
didn't allow you to use -2 to get the 2 pixel width; I tried it, but you
still
get 1 pixel lines.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top