Rotate images inside a scrolled panel in C#

[rotate images]

The example Interactively rotate images in C# lets you click and drag to rotate images. Unfortunately it doesn’t work well with images that are too big to fit on the screen. If an image is too big, the program lets you rotate it but you may be unable to see enough of the image to rotate it effectively.

This example displays the image inside a Panel that provides scroll bars if the image is big. You can then scroll to the part of the image that you want to see while you are rotating it.

Fortunately the program’s code doesn’t require any changes. The only changes are the new Panel and moving the PictureBox that displays the image into the Panel.

Download the example and see the previous post for more details.


Download Example   Follow me on Twitter   RSS feed   Donate


About RodStephens

Rod Stephens is a software consultant and author who has written more than 30 books and 250 magazine articles covering C#, Visual Basic, Visual Basic for Applications, Delphi, and Java.

This entry was posted in algorithms, graphics, image processing, transformations and tagged , , , , , , , , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *