Click or drag to resize

IBitmapImageLogicalDifference Method (IBitmapImage, Single, Int32)

Performs a 'Set' difference. Where the images intersect, intersect Colour is output. Otherwise, the original pixel is output. Parameter matchAccuracy specifies the accuracy for the intersection.

Namespace:  CohesiveComputing.Imaging
Assembly:  CohesiveComputing.BatchImagePro (in CohesiveComputing.BatchImagePro.dll) Version: 1.0.0
Syntax
C#
IBitmapImage LogicalDifference(
	IBitmapImage diffImage,
	float matchAccuracy,
	int intersectColourRGB
)

Parameters

diffImage
Type: CohesiveComputing.ImagingIBitmapImage
Image to difference with.
matchAccuracy
Type: SystemSingle
1 indicates exact match. A value less than 1 indicates less accurate match.
intersectColourRGB
Type: SystemInt32
Colour to set a pixel where a intersection is detected.

Return Value

Type: IBitmapImage
A new image instance with effect applied.
Exceptions
ExceptionCondition
ArgumentNullExceptiondiffImage
NotSupportedExceptionOperation not supported for implementation of argument diffImage.
InvalidOperationExceptionParameter diffImage
ArgumentOutOfRangeException matchAccuracy or intersectColour - Value must be >= 0 and <= 0xFFFFFF.
See Also