The multiply filter takes two images (source and overlay images) of the same size and pixel format and produces an image, where each pixel equals to the multiplication value of corresponding pixels from provided images.
- For 8bpp: (srcPix * ovrPix) / 255, - For 16bpp: (srcPix * ovrPix) / 65535.
The filter accepts 8 and 16 bpp grayscale images and 24, 32, 48 and 64 bpp color images for processing.
Sample usage:
// create filter Multiply filter = new Multiply(overlayImage); // apply the filter Bitmap resultImage = filter.Apply(sourceImage);