Click or drag to resize

IBitmapImageSubtract Method (IBitmapImage, Single)

Performs arithmetic subtraction from instance image. Applies brightness scale factor to image2 before subtracting. Negative results are forced to 0 (black).

Namespace:  CohesiveComputing.Imaging
Assembly:  CohesiveComputing.BatchImagePro (in CohesiveComputing.BatchImagePro.dll) Version: 1.0.0
Syntax
C#
IBitmapImage Subtract(
	IBitmapImage diffImage,
	float brightnessScale
)

Parameters

diffImage
Type: CohesiveComputing.ImagingIBitmapImage
Image to subtract. Must have same dimensions as instance image.
brightnessScale
Type: SystemSingle
1.0 indicates no change in brightness.

Return Value

Type: IBitmapImage
A new image instance with effect applied.
Exceptions
ExceptionCondition
ArgumentNullExceptiondiffImage
NotSupportedExceptionOperation not supported for implementation of argument diffImage.
InvalidOperationExceptionThe diffImage must have the same dimensions as this instance image.
ArgumentOutOfRangeExceptionbrightnessScale
See Also