Tag Archives: pictures

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

Make a Pinterest-style diagonal picture montage in C#

This example was inspired by a picture montage generated by Pinterest. Several months ago, my girlfriend and I started a bakery (see the website here), and a cool image appeared on our Pinterest page (which is here). Pinterest had taken … Continue reading

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

Use the Filter property to select image files in C#

This example is mostly intended to make it easier to find these filters. I use them a lot and it’s a pain to have to recreate them every time I need them. When you click the Different Types button, the … Continue reading

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

Paste a PNG format image with a transparent background from the clipboard in C#

Sometimes you may want to paste a PNG format image into your program. The clipboard provides a simple ContainsImage method to decide whether the clipboard contains image data and a simple GetImage method to get that image if it is … Continue reading

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

Copy an irregular area from a picture to the clipboard in C#

Somtimes it’s useful to copy an irregular area from a picture to the clipboard. Before explaining how to do that, let me say right away that MS Paint doesn’t understand transparency. Instead, when you paste an image into MS Paint, … Continue reading

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

Copy an irregular area from one picture to another in C#

This example shows how to copy an irregular area from one picture to another. (The next post shows how to copy an irregular area to the clipboard.) This example has two main tasks: letting the user select an irregular area … Continue reading

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

Optimize JPEG compression levels and file sizes in C#

This example lets you check image quality with different JPEG compression levels. Use the File menu’s Open command to load an image file. Then use the “JPEG Compression Index (CI)” ComboBox to select a compression level. The program saves the … Continue reading

Posted in files, graphics | Tagged , , , , , , , , , , , , , | 9 Comments