Tag Archives: pictures

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