Class CompareUtils
Inheritance
System.Object
CompareUtils
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: ArtOfTest.Common
Assembly: ArtOfTest.WebAii.dll
Syntax
public static class CompareUtils
Methods
ImageCompare(Bitmap, Bitmap, Rectangle, Int32)
Declaration
public static bool ImageCompare(Bitmap imageA, Bitmap imageB, Rectangle selectionArea, int tolerance)
Parameters
System.Drawing.Bitmap
imageA
|
System.Drawing.Bitmap
imageB
|
System.Drawing.Rectangle
selectionArea
|
System.Int32
tolerance
|
Returns
System.Boolean
|
ImageExactCompare(Bitmap, Bitmap)
Declaration
public static bool ImageExactCompare(Bitmap imageA, Bitmap imageB)
Parameters
System.Drawing.Bitmap
imageA
|
System.Drawing.Bitmap
imageB
|
Returns
System.Boolean
|
NumberCompare(Double, Double, NumberCompareType)
Declaration
public static bool NumberCompare(double leftPortion, double rightPortion, NumberCompareType compareType)
Parameters
System.Double
leftPortion
|
System.Double
rightPortion
|
NumberCompareType
compareType
|
Returns
System.Boolean
|
NumberCompare(Double, Double, NumberCompareType, Double)
Declaration
public static bool NumberCompare(double leftPortion, double rightPortion, NumberCompareType compareType, double delta)
Parameters
System.Double
leftPortion
|
System.Double
rightPortion
|
NumberCompareType
compareType
|
System.Double
delta
|
Returns
System.Boolean
|
NumberCompare(Int32, Int32, NumberCompareType)
Declaration
public static bool NumberCompare(int leftPortion, int rightPortion, NumberCompareType compareType)
Parameters
System.Int32
leftPortion
|
System.Int32
rightPortion
|
NumberCompareType
compareType
|
Returns
System.Boolean
|
NumberCompareRange(Int32, Int32, Int32, NumberRangeCompareType)
Declaration
public static bool NumberCompareRange(int number, int lowerEnd, int upperEnd, NumberRangeCompareType compareType)
Parameters
System.Int32
number
|
System.Int32
lowerEnd
|
System.Int32
upperEnd
|
NumberRangeCompareType
compareType
|
Returns
System.Boolean
|
StringCompare(String, String, FindCompareType)
Declaration
public static bool StringCompare(string a, string b, FindCompareType compareType)
Parameters
System.String
a
|
System.String
b
|
FindCompareType
compareType
|
Returns
System.Boolean
|
StringCompare(String, String, StringCompareType)
Declaration
public static bool StringCompare(string a, string b, StringCompareType compareType)
Parameters
System.String
a
|
System.String
b
|
StringCompareType
compareType
|
Returns
System.Boolean
|