Home All Groups Group Topic Archive Search About

VB.NET and VB Form.Scale

Author
14 Feb 2006 12:54 AM
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

Author
14 Feb 2006 3:23 PM
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.)





Show quoteHide quote
"placid" <Bul***@gmail.com> wrote in message
news:1139878490.396572.53620@z14g2000cwz.googlegroups.com...
> 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
>