Tag Archives: images

Make a button display the picture beneath slightly grayed it in C#

The example Make a button display the picture beneath it in C# shows how to make a button display the picture that lies below it. Unfortunately, the button only adds a border as decoration and the border doesn’t have a … Continue reading

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

Make a button display the picture beneath it in C#

This example makes a button display copies of the picture on which it sits, making it appear that the button is part of the underlying image. The key to this example is the following SetButtonBackground method. // Make the Button … Continue reading

Posted in controls, graphics, image processing | 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

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