Skip to main content
All docs
V25.1
  • .NET 8.0+

    IEasyTestScreen.GetImagesDifferences(Image, Image, Image) Method

    Returns an image that shows the difference between an actual and expected image.

    Namespace: DevExpress.EasyTest.Framework

    Assembly: DevExpress.EasyTest.v25.1.dll

    NuGet Package: DevExpress.EasyTest

    Declaration

    Image GetImagesDifferences(
        Image actualImage,
        Image expectedImage,
        Image maskImage = null
    )

    Parameters

    Name Type Description
    actualImage Image

    The actual screenshot.

    expectedImage Image

    The expected screenshot.

    Optional Parameters

    Name Type Default Description
    maskImage Image null

    A mask image.

    Returns

    Type Description
    Image

    The image that shows the difference between an actual and expected image.

    Remarks

    Use the SetActiveWindowSize(Size) method to set a window size before calling the GetScreenshot() method to guarantee that window sizes on the actual and expected screenshots are the same.

    See Also