Apply filter to an image in unmanaged memory.
Namespace:
AForge.Imaging.FiltersAssembly: AForge.Imaging (in AForge.Imaging.dll) Version: 2.2.5.0 (2.2.5.0)
Syntax
C# |
---|
public void Apply( UnmanagedImage sourceImage, UnmanagedImage destinationImage ) |
Parameters
- sourceImage
- Type: AForge.Imaging..::.UnmanagedImage
Source image in unmanaged memory to apply filter to.
- destinationImage
- Type: AForge.Imaging..::.UnmanagedImage
Destination image in unmanaged memory to put result into.
Implements
IFilter..::.Apply(UnmanagedImage, UnmanagedImage)
Remarks
The method keeps the source image unchanged and puts result of image processing into destination image.

Exceptions
Exception | Condition |
---|---|
AForge.Imaging..::.UnsupportedImageFormatException | Unsupported pixel format of the source image. |
AForge.Imaging..::.InvalidImagePropertiesException | Incorrect destination pixel format. |
AForge.Imaging..::.InvalidImagePropertiesException | Destination image has wrong width and/or height. |