Compares the supplied bitmaps pixel by pixel, using NUnit Assert
methods.
Namespace:
NUnit.Extensions
Assembly:
NUnit.Extensions (in NUnit.Extensions.dll) Version: 0.1.3593.29695
Syntax
| Visual Basic (Declaration) |
|---|
Public Shared Sub AreEqual ( _
expected As Bitmap, _
actual As Bitmap, _
tolerance As Integer, _
info As String _
) |
Parameters
- expected
- Type: System.Drawing..::.Bitmap
The expected bitmap.
- actual
- Type: System.Drawing..::.Bitmap
The actual bitmap.
- tolerance
- Type: System..::.Int32
Tolerance of differences in R, G or B values between corresponding
pixels in the two bitmaps.
For example, if tolerance is set to 5 then RGB( 255, 0, 255 ) and
RBG( 250, 5, 250 ) will count as the same colour but RGB( 0, 0, 0 )
and RBG( 0, 6, 0 ) will not.
Set to 0 to assert that all pixels are an exact colour match.
- info
- Type: System..::.String
Any additional information to be displayed if an assert fails, e.g.
frame index within an animation.
See Also