Category Archives: image processing

Crop scaled images to specific sizes in C#

This example lets you crop scaled images to specific sizes in C#. The post Crop images to specific sizes in C# lets you drag a rectangle of a specified size around on an image to pick the part of the … Continue reading

Posted in drawing, graphics, image processing, tools | Tagged , , , , , , , , , , , | 2 Comments

Resize pictures in a directory to specific widths or heights in C#

The post Resize pictures in a directory in C# lets you resize all of the pictures in a directory but it only scales the images. This example lets you resize pictures so they have a given width, height, or both. … Continue reading

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

Load a picture and manipulate pixels in WPF and C#

The post Easily manipulate pixels in WPF and C# explains a BitmapPixelMaker class that you can use to manipulate the pixels in an image in WPF relatively easily. That example creates the image from scratch. This post extends that class … Continue reading

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

Draw an image circle in C#

This example is somewhat similar to the post Draw an image spiral in C# except it draws an image circle instead of an image spiral. The key is the DrawImageCircle method, which draws a smaller image in a circle on … Continue reading

Posted in drawing, graphics, image processing, mathematics | Tagged , , , , , , , , , | 1 Comment

Use the ColorMatrix and ImageAttributes classes to quickly modify image colors in C#

This example shows how to use the ColorMatrix and ImageAttribute classes to quickly modify image colors. I’ve made several posts that use those classes to modify image colors in a few specific ways. I’ve also posted other posts that modify … Continue reading

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

Rotate images to straighten them in C#

I’ve written a couple of examples that show how to rotate images. I made many of them because I wanted to adjust a picture I had taken that was slightly crooked. Those examples work well, but they can be fairly … Continue reading

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

Make a hexagonal montage of pictures in C#

This example combines techniques from several earlier posts to make a hexagonal montage. It uses the techniques demonstrated in the post Draw a hexagonal grid in C# to define the grid and to make positions on the form two and … Continue reading

Posted in drawing, graphics, image processing, tools | Tagged , , , , , , , , , , , , , , | 1 Comment

Clip an image to a polygon in C#

This example lets you select a polygon and then uses it to clip an image to it. It uses the technique described in my previous post Build a polygon selector class in C# to let you select the polygon. The … Continue reading

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

Arrange images on the corners of a polygon in C#

This post shows a way to arrange images on top of a background image as shown in the image above. How to Use the Program Enter the names of the background and foreground image files, or use the File menu’s … Continue reading

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

Make an improved diagonal picture montage in C#

My earlier example Make a Pinterest-style diagonal picture montage in C# showed how you could make a picture montage showing parts of images rotated by a desired angle. While using that program today I found a small bug. The areas … Continue reading

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