Image Processing Index



Click for Image Processing Using DIB Sections

Image Processing Using DIB Sections

This sample demonstrates a new 24 bit image processor using the DIB Section GDI object, allowing you to perform a whole raft of standard Image Processing functions, including blurring, sharpening, colourising, resampling and image arithmetic.

  more...


Last Updated: 13 January 2003


Click for Colour Depth Control

Colour Depth Control

In VB, you cannot change the colour depth of a bitmap. This article presents classes allowing you to reduce or increase the colour depth using a number of different methods and also to save the resulting image to disk as a bitmap with the specified colour depth.

  more...


Last Updated: 13 January 2003


Click for Texturising Images

Texturising Images

This sample provides a simple image processing application which applies a texture to an image by modifying the lightness of the image according to the lightness of a texture image. The texture image is tiled across the surface of the processed image.

  more...


Last Updated: 13 January 2003


Click for Counting Colours in an Image

Counting Colours in an Image

Counting the number of distinct colours in an image doesn't sound like a particularly hard thing to do until you try it on a large 24-bit image. This article demonstrates one technique for counting the colours quickly.

  more...


Last Updated: 13 January 2003


Click for Quantising Bitmaps

Quantising Bitmaps

This sample was inspired by a T-Shirt I bought which used circles of various sizes to represent the intensity level of a blown-up image. The image is easy to see at a distance but not so straightforward close-up (which is handy, as I'm no oil-painting close-up). The code demonstrates averaging the pixels in an image and then creating a new image with one which uses an image from a strip which corresponds to the intensity at that point, optionally setting the colour to match the original.

  more...


Last Updated: 16 April 2004


Click for Programmatic Creation of Drop-Shadows

Programmatic Creation of Drop-Shadows

This sample demonstrates creating an alpha-blended drop-shadow for a bitmap in code. Intensity, colour, offset and blurring of the effect can all be easily controlled. For reasonably sized source bitmaps, the code is efficient enough to run in real-time on most machines.

  more...


Last Updated: 16 April 2004


Click for Colourisation

Colourisation

Image colourisation is a widely-used technique in image processing which can be used to create sepia-toned effects as well as adjusting images so they can be used as watermarks and in the creation of layered background images. This article demonstrates how to use the Hue, Luminance and Saturation model to perform colourisation and to adjust the intensity of the applied effect.

  more...


Last Updated: 23 October 2003


Click for Gamma Correction

Gamma Correction

A Gamma Correction filter is primarily used for colour matching purposes on CRT based displays, but it can also be used for creative image processing. This article shows how the gamma filter is calculated and provides an implementation.

  more...


Last Updated: 5 September 2003


Click for Compositing Operations

Compositing Operations

There are various ways of combining two images together, particularly when either or both of the two images contain alpha channels. As the real-time video-effects industry has developed, twelve standard compositing techniques, know as the Porter-Duff Compositing Operations, have emerged. In addition, many image processing application support other useful operations, such as "Burn" and "Hard-Light". GDI and GDI+ provide very limited support for compositing operations, so this article demonstrates how to perform them using VB code.

  more...


Last Updated: 5 September 2003


Click for Brightness and Contrast

Brightness and Contrast

This article demonstrates how to apply two of the simplest image processsing filters, brightness and contrast, to an image.

  more...


Last Updated: 5 September 2003