Apply filter to an image in unmanaged memory.

Namespace:  AForge.Imaging.Filters
Assembly:  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.

Note:The destination image must have width, height and pixel format as it is expected by the final filter in the sequence.

Exceptions

ExceptionCondition
System..::.ApplicationExceptionNo filters were added into the filters' sequence.

See Also