Category Archives: image processing

Tile a PictureBox in C#

If you set a form’s BackgroundImageLayout property Tile, then the control fills itself with copies of its background image. Strangely the PictureBox control does not have a corresponding Tile property. This example shows one way you can tile images on … Continue reading

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

Change image resolution in C#

This example shows how to change an image’s resolution. It’s another example I created to help while writing books. Computers usually work with images that have a resolution of 96 pixels per inch (PPI). Printers and publishers often require images … Continue reading

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

Use the mouse wheel to scale an image in C#

This example lets you use the mouse wheel to zoom in and out on an image. To use the mouse wheel, the program needs to catch the MouseWheel event. Unfortunately that event isn’t listed in the Form Designer so you … Continue reading

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

Save several images into Access in C#

The example Save images in an Access database in C# includes an Access database. Unfortunately if you save several images into the database and then open the database in Access, Access removes the images. It just doesn’t seem to understand … Continue reading

Posted in database, graphics, image processing, Office | Tagged , , , , , , , , , , , , , , , , , , | 1 Comment

Load images from an Access database in C#

The post Save images in an Access database in C# explains how to save images in an Access database. This post explains how to load images from an Access display them. Like previous examples, this program uses a SQL statement … Continue reading

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

Save images in an Access database in C#

This example shows how you can save images in an Access database. The example Use filenames stored in a database to display images in C# shows how to display images by saving the image file names in a database and … Continue reading

Posted in database, graphics, image processing, Office | Tagged , , , , , , , , , , , , , , , , , | 4 Comments

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

Use filenames stored in a database to display images in C#

The reason so many people ask how to store and retrieve images in a database is that it’s hard. You need to use a special data type such as the BLOB (Binary Large Object) or MEMO data type depending on … Continue reading

Posted in database, graphics, image processing, user interface | Tagged , , , , , , , , , , , , , , | 2 Comments

Make the basis for a card game in C#

The goal of this example is to provide some support for building a card game. It shows how to make a class to represent cards and to to tell what card is displayed in a PictureBox. It’s actually relatively straightforward. … Continue reading

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

Verify sizes of playing cards in C#

Recently I wanted to use some playing cards in a program so I looked online for some nice images. I could have included 55 or so separate images (including jokers and backs), but I decided it would be easier to … Continue reading

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