다음을 통해 공유


ImageComparer.Compare 메서드 (Image, Image, List<ToleranceRectangle>)

특정 지역에 공차 사각형에 의해 지정 된 영역에서 두 개의 이미지를 비교 합니다.

이미지 차이 허용 범위 내에서 true를 반환 합니다.

네임스페이스:  Microsoft.VisualStudio.TestTools.UITesting
어셈블리:  Microsoft.VisualStudio.TestTools.UITesting(Microsoft.VisualStudio.TestTools.UITesting.dll)

구문

‘선언
Public Shared Function Compare ( _
    actualImage As Image, _
    expectedImage As Image, _
    rectangleList As List(Of ToleranceRectangle) _
) As Boolean
public static bool Compare(
    Image actualImage,
    Image expectedImage,
    List<ToleranceRectangle> rectangleList
)
public:
static bool Compare(
    Image^ actualImage, 
    Image^ expectedImage, 
    List<ToleranceRectangle>^ rectangleList
)
static member Compare : 
        actualImage:Image * 
        expectedImage:Image * 
        rectangleList:List<ToleranceRectangle> -> bool
public static function Compare(
    actualImage : Image, 
    expectedImage : Image, 
    rectangleList : List<ToleranceRectangle>
) : boolean

매개 변수

  • actualImage
    형식: Image

    실제 이미지입니다.

  • expectedImage
    형식: Image

    예상되는 이미지입니다.

  • rectangleList
    형식: List<ToleranceRectangle>

    비교 영역 및 허용 오차 값을 나타내는 허용치 사각형의 목록입니다.

반환 값

형식: Boolean
두 이미지가 허용 오차 사각형에 지정된 값을 충족하면 true입니다.

.NET Framework 보안

참고 항목

참조

ImageComparer 클래스

Compare 오버로드

Microsoft.VisualStudio.TestTools.UITesting 네임스페이스