From: Massimo Riccardi on
Hi all,

I have a picturebox with a customized Scale and I want to plot a point on
it.
In the old VB6 it was very simple :

Picturebox1.Scale (-0.5,0.5)-(0.5,-0.5) ' customized scale coordinates in my
sample
Picturebox1.Pset (x,y), color

Now (after same searching) I found the method to set a customized Scale in
VB.NET (ScaleTransform and TranslateTransform)
but 'm not able to draw the Points.
I can draw Lines,rectangles in such scale without any problems but not
Points.
For example in my scale how to draw a Point in the (0.1, 0.2)
position/coordinates?

I tried to utilize the Drawline method with the same initial and final x,y
line coordinates but it doesn't work.
The same happens with Drawrectangle.
Setpixel method seems working only with integer numbers (pixels) while I
have different scale (numbers are <1)

Thanks for any help.

Massimo


From: James Hahn on
Draw a rectangle with a non-zero width and height.

"Massimo Riccardi" <rimassimo(a)aliceposta.it> wrote in message
news:4b65a83a$0$1107$4fafbaef(a)reader4.news.tin.it...
> Hi all,
>
> I have a picturebox with a customized Scale and I want to plot a point on
> it.
> In the old VB6 it was very simple :
>
> Picturebox1.Scale (-0.5,0.5)-(0.5,-0.5) ' customized scale coordinates in
> my sample
> Picturebox1.Pset (x,y), color
>
> Now (after same searching) I found the method to set a customized Scale in
> VB.NET (ScaleTransform and TranslateTransform)
> but 'm not able to draw the Points.
> I can draw Lines,rectangles in such scale without any problems but not
> Points.
> For example in my scale how to draw a Point in the (0.1, 0.2)
> position/coordinates?
>
> I tried to utilize the Drawline method with the same initial and final
> x,y line coordinates but it doesn't work.
> The same happens with Drawrectangle.
> Setpixel method seems working only with integer numbers (pixels) while I
> have different scale (numbers are <1)
>
> Thanks for any help.
>
> Massimo
>