differingPixelBounds

The smallest rectangle holding every pixel at which expected and actual differ, or null where they are the same.

Parameters

expected

the reference image.

actual

the image under test.

Throws

if the images differ in size.