Just kind of a random question. How exactly do you rotate objects in vb.net?

Recommended Answers

All 4 Replies

Depends... if you just need to draw it rotated using GDI+, you can use Graphics.RotateTransform and draw using the original, unrotated coordinates. Otherwise, I think you're stuck doing it yourself.

gusano79 solution is right for all objects. But I suspect you are tagging picturebox here, so how about using RotateFlip() to Flip the image inside the picturebox but not a whole picturebox itself?

yep, it depends. if rotate with some image rotating tools, very high precision can be achieved.

Good point E.Newbie, I think there could be a little trick on that. But I'll try first before showing the code. There's something in my mind that I think would work. I'll get back to you guys.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.