Tag Archives: drawing

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

Print product signs in C#

This is a program I recently wrote to print product signs for my bakery The Enchanted Oven. You can modify the code to use your product names and prices. In the program’s main form (upper left in the picture), select … Continue reading

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

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

Draw a radar chart in C#

A radar chart shows measurements along several axes that all radiate out from a common center. This lets you compare several properties for different objects at the same time. in a way, you can think of a radar chart as … Continue reading

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

Revised: Graph world total COVID-19 cases, deaths, and recoveries in C#

This post revises the example Graph world total COVID-19 cases, deaths, and recoveries in C#. Ulrich Rosin left a comment on that post. He added a seven-day average. He also displayed tick marks for the beginning of each month instead … Continue reading

Posted in drawing, graphics | Tagged , , , , , , , , , , , , , , , , | 5 Comments

Crop scaled images to a desired aspect ratio in C#

I often need to crop images and sometimes I want a specific aspect ratio. (In case you haven’t heard this term before, the aspect ratio is the ratio of the image’s width to height. As an equation, it’s width / … Continue reading

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

Test graphical transformations in C#

This example draws several pictures to let you test graphical transformations. The general approach is the same for each picture. The following section explains how the program draws the pictures that demonstrate the various graphical transformations. The sections after that … Continue reading

Posted in drawing, graphics, transformations | Tagged , , , , , , , , , , , , , , | Leave a comment

Make multi-image icons from files in C#

The post Make multi-image icon files in C# showed how to create several bitmaps at runtime and then used them to create multi-image icons in C#. This example lets you load multiple saved image files and use them to create … Continue reading

Posted in drawing, files, graphics | Tagged , , , , , , , , , | Leave a comment