Tag Archives: image processing

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 , , , , , , , , , | Leave a 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

Draw an image spiral in C#

This example lets you draw image spirals similar to the one shown above. This example lets you draw image spirals similar to the one shown above. It’s mostly just for fun, although it does include a useful exercise in graphics … Continue reading

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

Crop images to specific sizes in C#

Sometimes I need to crop images to specific sizes or aspect ratios. For example, the following list shows some recommended image sizes for Google Business. Profile image – 250×250 pixels Cover photo – 1080×608 pixels Shared images – 497×373 pixels … Continue reading

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

Draw on top of a background image in C#

Drawing on a background image is actually very easy. It seems to be a common question on the internet, however, so I decided to make this example. This example draws on a background image in two ways. If you just … Continue reading

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