473,397 Members | 1,961 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Rotating a Picturebox

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
1 1857
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Paul E Collins | last post by:
I can draw on a PictureBox like this ... private void pic_Paint(object sender, System.Windows.Forms.PaintEventArgs e) { Graphics g = e.Graphics; using (SolidBrush brush = new...
0
by: akh | last post by:
I want to use de Drag and Drop ´s event to move a picture box from a form and within a Picture Box. But I have behaviour if the MyPBox As PictureBox as the Globale varible or not Thanks for...
4
by: Andre Nogueira | last post by:
Hi there. I have one question... How can I create a bitmap (programmatically), paint it to a picture box and have a transparent background? I don't know what will be below the picturebox because...
3
by: Tom | last post by:
I have a picturebox on my VB.NET form. The picturebox size mode is set to stretched. I then load an image into that form and display it. As the user moves the mouse over the form, I want to get and...
1
by: Charles A. Lackman | last post by:
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...
5
by: Ricardo Furtado | last post by:
I'm trying, for a week or two, to create a procedure in order to rotate the image in any picturebox control in a cephalometry software. I've found a web site that shows how that can be done:...
3
by: avalence | last post by:
Hello, I am trying to create a nice rotating earth globe (on mouse) on my web site, in order to display my professional relationships all over the world. The best way seems to be a javascript. In...
1
by: AR123 | last post by:
Hi I want to set up a rotating banner. Not sure how to incorporate my rotating banner code into the code below. I want the rotating banner to be the main feature image? This is set up in...
8
by: Syoam4ka | last post by:
Hi, I have a WinApp in which I have a pictureBox. I can draw in it like in the paint of windows - I accomplish that with an arrayList of Points and DrawLines method of the Graphics. So it...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.