Apply filter to an image or its part.
Namespace:
AForge.Imaging.FiltersAssembly: AForge.Imaging (in AForge.Imaging.dll) Version: 2.2.5.0 (2.2.5.0)
Syntax
C# |
---|
public void ApplyInPlace( BitmapData imageData, Rectangle rect ) |
Parameters
- imageData
- Type: System.Drawing.Imaging..::.BitmapData
Image data to apply filter to.
- rect
- Type: System.Drawing..::.Rectangle
Image rectangle for processing by the filter.
Implements
IInPlacePartialFilter..::.ApplyInPlace(BitmapData, Rectangle)
Remarks
The method applies the filter directly to the provided source image.
Exceptions
Exception | Condition |
---|---|
AForge.Imaging..::.UnsupportedImageFormatException | Unsupported pixel format of the source image. |