Tag Archives: rotate image

Rotate images that are scaled in C#

The example Interactively rotate images in C# lets you click and drag to rotate images but it doesn’t always work well if the image you are rotating is too big to fit on the screen. The example Rotate images inside … Continue reading

Posted in algorithms, graphics, image processing, transformations | Tagged , , , , , , , , , , , , , , | 14 Comments

Rotate images inside a scrolled panel in C#

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 … Continue reading

Posted in algorithms, graphics, image processing, transformations | Tagged , , , , , , , , , , , , | Leave a comment

Rotate images in C#

This program uses the following RotateBitmap method to rotate an image. // Return a bitmap rotated around its center. private Bitmap RotateBitmap(Bitmap bm, float angle) { // Make a Matrix to represent rotation // by this angle. Matrix rotate_at_origin = … Continue reading

Posted in algorithms, graphics, image processing, transformations | Tagged , , , , , , , , , | 6 Comments

Rotate a picture in C#

I recently returned from a trip and one particular picture was rotated just a tiny bit from where I wanted it. Normally I wouldn’t care but this picture (a small version is included in the download) has horizontal features at … Continue reading

Posted in algorithms, graphics, image processing | Tagged , , , , , , , , , , , , , , , , | 1 Comment

Use the Bitmap class’s RotateFlip method to easily flip and rotate an image in C#

The Bitmap class’s RotateFlip method makes it easy to rotate an image by a multiple of 90 degrees and flip it vertically or horizontally. This example wraps the call to RotateFlip in the following ModifiedBitmap method. It makes a copy … Continue reading

Posted in graphics, image processing | Tagged , , , , , , , , , , , , , , | Leave a comment