Environment.CompareWithReferenceImage (Bitmap, Bitmap, Bitmap, viewType, Double, Color) Method

Executes a 3D scene visual testing.
Public Function CompareWithReferenceImage( _ 
ByVal expectedImage As Bitmap, _ 
ByRef actualImage As Bitmap, _ 
ByRef diffImage As Bitmap, _ 
ByVal viewType As viewType, _ 
ByVal pixelTransparency As Double, _ 
ByVal errorPixelColor As Color
) As Double
This language is not supported or no code example is available.
public double CompareWithReferenceImage( 
Bitmap expectedImage
out Bitmap actualImage
out Bitmap diffImage
viewType viewType
double pixelTransparency
Color errorPixelColor 
)
This language is not supported or no code example is available.

Parameters

expectedImage
Bitmap

The reference bitmap

actualImage
Bitmap

The current bitmap as output

diffImage
Bitmap

The generated image with the differences

viewType
viewType

The viewType.

pixelTransparency
double

Transparency factor [between 0.0 and 1.0] for the generated image.

errorPixelColor
Color

The color used to show the differences

Return Value

double

The mismatch percentage

.NET Framework

Supported in: 4.5, 4.6, 4.7

In this article

Definition