Tag Archives: images

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 , , , , , , , , , , , , | 11 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 , , , , , , , , , , , , | 6 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 , , , , , , , , , | 13 Comments

Make an HTML table of thumbnail images in C#

The post Make thumbnails and a web page to display the images in a directory in C# shows how to make thumbnails for the images in a directory and then build a web page to display them. There are lots … Continue reading

Posted in files, html, image processing, internet, web | Tagged , , , , , , , , , , , , , | Leave a comment

Make thumbnails and a web page to display the images in a directory in C#

This example searches a directory and makes thumbnails for each of the image files it finds there. It also builds a web page that displays the thumbnails and that includes links to the full-scale images. It puts all of the … Continue reading

Posted in files, html, image processing, internet, web | Tagged , , , , , , , , , , , , | Leave a comment

Zoom and crop a picture in C#

This program lets the user zoom in and then click and drag to crop a picture. When you zoom in, the selection rectangle snaps to positions between the image’s enlarged pixels so it’s easy to tell exactly which pixels are … Continue reading

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

Crop a picture in C#

The program uses three Bitmap objects to hold different copies of the current image. // The original image. private Bitmap OriginalImage; // The currently cropped image. private Bitmap CroppedImage; // The cropped image with the selection rectangle. private Bitmap DisplayImage; … Continue reading

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

Remove part of an image in C#

This example lets you remove part of an image. It lets you load an image file and then click and drag to select an area on the image. When you release the mouse, the program generates two new images: an … Continue reading

Posted in algorithms, geometry, graphics, mathematics | Tagged , , , , , , , , , , , , | Leave a comment