|
-
Sep 4th, 2006, 05:48 AM
#1
Thread Starter
Frenzied Member
[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
-
Sep 4th, 2006, 05:57 AM
#2
Re: [02/03] Drawing on a stretched image co-ordinate problem
 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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|