By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,686 Members | 2,392 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,686 IT Pros & Developers. It's quick & easy.

Rotating a Picturebox

P: n/a
Hello,

I am trying to rotate a picturebox control. I have done some experimenting
with rotating the image inside the picturebox, but I am trying to get the
affect of grabbing the corner of the picturebox and moving the mouse to
change the angle. I am sure I can implement the code to grab the corners as
I have already implemented code to stretch the image diagonal, up, and down
and for a border to appear when the picturebox is entered. The problem I am
experiencing is that the picturebox (or the location property) does not
allow for 4 points. Am I missing something to turn the actual picturebox?
I have flipped the Image using rotateflip(RotateFliptype.Rotate270FlipXY)
and Even Rotated the image using the Matrix. But that is not what I am
really looking for.

If there was a way to use Rotateflip and give it actual Values (30, 45, 55
etc.) would help. But I don't see anything beyond the 6 or so choices.

Any suggestions will be greatly appreciated,
Thanks
Chuck
Jul 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
http://www.vbdotnetheaven.com/

Charles A. Lackman wrote:
Hello,

I am trying to rotate a picturebox control. I have done some experimenting
with rotating the image inside the picturebox, but I am trying to get the
affect of grabbing the corner of the picturebox and moving the mouse to
change the angle. I am sure I can implement the code to grab the corners as
I have already implemented code to stretch the image diagonal, up, and down
and for a border to appear when the picturebox is entered. The problem I am
experiencing is that the picturebox (or the location property) does not
allow for 4 points. Am I missing something to turn the actual picturebox?
I have flipped the Image using rotateflip(RotateFliptype.Rotate270FlipXY)
and Even Rotated the image using the Matrix. But that is not what I am
really looking for.

If there was a way to use Rotateflip and give it actual Values (30, 45, 55
etc.) would help. But I don't see anything beyond the 6 or so choices.

Any suggestions will be greatly appreciated,
Thanks
Chuck


Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.