[02/03] Drawing on a stretched image co-ordinate problem
When the picturebox1 size mode is set to normal the co-ordinates I use seem to work fine. Under the mouse move event I defined the size of the shape using:
rect = New Rectangle(ptStart.X, ptStart.Y, intWidth, intHeight)
However, if i change the picturebox size mode to 'stretched' it wont draw as I need. Shapes end up in weird places. I can understand why this problem occurs, I just don't know how to work around it. Is there a simple answer? What should I be looking for?
Thanks,
Stim
Re: [02/03] Drawing on a stretched image co-ordinate problem
Quote:
Originally Posted by stimbo
When the picturebox1 size mode is set to normal the co-ordinates I use seem to work fine. Under the mouse move event I defined the size of the shape using:
rect = New Rectangle(ptStart.X, ptStart.Y, intWidth, intHeight)
However, if i change the picturebox size mode to 'stretched' it wont draw as I need. Shapes end up in weird places. I can understand why this problem occurs, I just don't know how to work around it. Is there a simple answer? What should I be looking for?
Thanks,
Stim
Hi,
You could try this;
VB Code:
rect = New Size(ptStart.X, ptStart.Y, intWidth, intHeight)
Hope it helps,
sparrow1