Asserts that all the pixels in the supplied image are of the
supplied colour.
Namespace:
NUnit.ExtensionsAssembly: NUnit.Extensions (in NUnit.Extensions.dll) Version: 0.1.3593.29695
Syntax
| C# |
|---|
public static void IsSingleColour( Image image, Color colour, int tolerance ) |
| Visual Basic (Declaration) |
|---|
Public Shared Sub IsSingleColour ( _ image As Image, _ colour As Color, _ tolerance As Integer _ ) |
| Visual C++ |
|---|
public: static void IsSingleColour( Image^ image, Color colour, int tolerance ) |
Parameters
- image
- Type: System.Drawing..::.Image
The image to check.
- colour
- Type: System.Drawing..::.Color
The colour that the pixels in the supplied image are expected to be.
- tolerance
- Type: System..::.Int32
The allowable difference between R, G and B values.