Category Archives: image processing

Use the mouse wheel to scale images while cropping them to a desired aspect ratio in C#

This example adds mouse wheel support to the example Crop scaled images to a desired aspect ratio in C#. Some social media platforms work best with a 4:3 aspect ratio, so I use that example almost every day to crop … Continue reading

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

Allow scrolling while making a hexagonal montage in C#

The example Make a hexagonal montage of pictures in C# shows how to make a hexagonal montage similar to the one shown above. I sometimes want to make a montage that is much bigger, and that example doesn’t let you … Continue reading

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

Display flash cards in C#

This example displays flash cards created by two pervious examples. The post Split images into halves in C# shows how to separate the prompt and result flash card images. The post Label images at the bottom in C# shows how … Continue reading

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

Label images at the bottom in C#

The second step in building a Hiragana flash card program is to label images so you can understand what they mean. My last post in the series, Split images into halves in C#, showed how to split an image into … Continue reading

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

Split images into halves in C#

Sometimes I starts a project that begins simply enough but that requires me to write a couple of other programs. In this case I wanted to write a simple flash card program to display images of Japanese Hiragana characters so … Continue reading

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

Allow scrolling while making a diagonal picture montage in C#

The post Make an improved diagonal picture montage in C# describes a program that lets you make a diagonal picture montage similar to the one shown above. I recently wanted to make a picture montage that was much bigger. There … Continue reading

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

Let the user scribble on a background image in C#

The post Let the user scribble on a PictureBox in C# shows how you can let the user draw with the mouse. This example lets you load a background image. It also lets you save the result into an image … Continue reading

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

Create button images in WPF and C#

It seems like I’m constantly building programs like this one to create simple button images that I can use in other programs. This example uses XAML code to create some simple button images. The program’s code then saves those images … Continue reading

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

Overlay parts of images in C#

My previous post Brighten pixels in an image in C# lets you brighten certain pixels in an image. Unfortunately is often brightens pixels outside of the area that you want to modify. For example, in the left side of the … Continue reading

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

Brighten pixels in an image in C#

Sometimes when I take a picture, the poor lighting makes some pixels come out less brightly than I would like. For example, in the picture on the right the red raspberries aren’t very red. This example lets you brighten pixels. … Continue reading

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