C# Class Accord.Imaging.Filters.Multiply

Multiply filter - multiply pixel values of two images.

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);
Inheritance: BaseInPlaceFilter2
Afficher le fichier Open project: accord-net/framework Class Usage Examples

Méthodes publiques

Méthode Description
Multiply ( ) : System.Collections.Generic

Initializes a new instance of the Multiply class.

Multiply ( Bitmap overlayImage ) : System.Collections.Generic

Initializes a new instance of the Multiply class.

Multiply ( UnmanagedImage unmanagedOverlayImage ) : System.Collections.Generic

Initializes a new instance of the Multiply class.

Méthodes protégées

Méthode Description
ProcessFilter ( UnmanagedImage image, UnmanagedImage overlay ) : void

Process the filter on the specified image.

Private Methods

Méthode Description
InitFormatTranslations ( ) : void

Method Details

Multiply() public méthode

Initializes a new instance of the Multiply class.
public Multiply ( ) : System.Collections.Generic
Résultat System.Collections.Generic

Multiply() public méthode

Initializes a new instance of the Multiply class.
public Multiply ( Bitmap overlayImage ) : System.Collections.Generic
overlayImage System.Drawing.Bitmap Overlay image
Résultat System.Collections.Generic

Multiply() public méthode

Initializes a new instance of the Multiply class.
public Multiply ( UnmanagedImage unmanagedOverlayImage ) : System.Collections.Generic
unmanagedOverlayImage UnmanagedImage Unmanaged overlay image.
Résultat System.Collections.Generic

ProcessFilter() protected méthode

Process the filter on the specified image.
protected ProcessFilter ( UnmanagedImage image, UnmanagedImage overlay ) : void
image UnmanagedImage Source image data.
overlay UnmanagedImage Overlay image data.
Résultat void