Apply filter to an image.
Namespace:
AForge.Imaging.FiltersAssembly: AForge.Imaging (in AForge.Imaging.dll) Version: 2.2.5.0 (2.2.5.0)
Syntax
C# |
---|
public Bitmap Apply( BitmapData imageData ) |
Parameters
- imageData
- Type: System.Drawing.Imaging..::.BitmapData
Source image to apply filter to.
Return Value
Returns filter's result obtained by applying the filter to the source image.Implements
IFilter..::.Apply(BitmapData)
Remarks
The filter accepts bitmap data as input and returns the result
of image processing filter as new image. The source image data are kept
unchanged.
Exceptions
Exception | Condition |
---|---|
AForge.Imaging..::.UnsupportedImageFormatException | Unsupported pixel format of the source image. |