Tag Archives: images

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

Explore the Visual Studio Image Library in C#

This example explains where you can find standard images in the Visual Studio Image Library that you can use in your applications. The example Give transparent backgrounds to images displayed on buttons in C# explains how to make some pixels … Continue reading

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

Overlay images in C#

This example shows how to overlay images with transparent backgrounds on a background picture. The following two examples make small files that you can use as overlay images to annotate larger images. Draw numbered buttons and save them into files … Continue reading

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

Display a Windows metafile (wmf) in C#

A Windows metafile (wmf) is an image file that contains instructions for drawing shapes. In contrast, bitmap, PNG, JPG, and other raster image files indicate exactly what colors individual pixels should have. Because a Windows metafile contains drawing instructions instead … Continue reading

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

Make shaped PictureBoxes in C#

This example shows how to use regions to make shaped PictureBoxes. The PNG image format allows you to define transparent pixels. As you might guess, if you draw an image with transparent pixels, those pixels are not drawn and whatever … Continue reading

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

Make a ComboBox display images with text in C#

The example Make a ComboBox display colors or images in C# shows how to make an owner-drawn ComboBox that displays either a series of color samples or a list of images. This example shows how to make a ComboBox that … Continue reading

Posted in controls, extension methods, graphics | Tagged , , , , , , , , , , , , | 8 Comments

Make a ComboBox display colors or images in C#

There are two kinds of owner-drawn ComboBox controls. In the first kind, every item has the same size. In the second kind of ComboBox, each item can have a different size. Same Sized Items To make all items have the … Continue reading

Posted in controls, extension methods, graphics | Tagged , , , , , , , , , , , , | 2 Comments

Use image subtraction to compare images in C#

The following examples shows two approaches for seeing how much two images differ. Compare images to find differences in C# Compare images to find subtle differences in C# The first example only works well with drawn images, not photographs, because … Continue reading

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

Compare images to find subtle differences in C#

The example Compare images to find differences in C# lets you compare images pixel-by-pixel. Unfortunately it regards the pixels in the images different if they are not exactly the same. That’s fine if the images are full of lines and … Continue reading

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

Compare images to find differences in C#

This example lets you compare images to see if they are the same. When you select two images to compare and click the Go button, the program executes the following code to compare the images and see at which pixels … Continue reading

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