Environment.CompareWithReferenceImage (Bitmap, Bitmap, Bitmap, Double) Method
Executes a 3D scene visual testing.
Public Function CompareWithReferenceImage( _
ByVal expectedImage As Bitmap, _
ByVal actualImage As Bitmap, _
ByRef diffImage As Bitmap, _
Optional ByVal pixelTransparency As Double = 0.3 _
) As Double
This language is not supported or no code example is available.
This language is not supported or no code example is available.
Parameters
-
expectedImage
-
Bitmap
The reference bitmap
-
actualImage
-
Bitmap
The current bitmap as input
-
diffImage
-
Bitmap
The generated image with the differences
-
pixelTransparency
-
double
Transparency factor [between 0.0 and 1.0] for the generated image.
Return Value
double
The mismatch percentage
.NET Framework
Supported in: 4.5, 4.6, 4.7