Second filter

Namespace:  AForge.Imaging.Filters
Assembly:  AForge.Imaging (in AForge.Imaging.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public IFilter Filter2 { get; set; }

Remarks

Filter, which is used to produce second image for the merge. The filter needs to implement IFilterInformation interface, so it could be possible to get information about the filter. The filter must be able to process color 24 bpp images and produce color 24 bpp or grayscale 8 bppp images as result.

Note:The filter may be set to nullNothingnullptra null reference (Nothing in Visual Basic). In this case original source image is used as a second image for the merge.

Exceptions

ExceptionCondition
AForge.Imaging..::.UnsupportedImageFormatExceptionThe specified filter does not support 24 bpp color images.
AForge.Imaging..::.UnsupportedImageFormatExceptionThe specified filter does not produce image of supported format.
System..::.ArgumentExceptionThe specified filter does not implement IFilterInformation interface.

See Also