Function xray::diff_images[][src]

pub fn diff_images(
    actual: &DynamicImage,
    expected: &DynamicImage
) -> DynamicImage

Creates an image diff between two images.

This is done by creating an image of the size of the actual parameter, and copying those pixels that are present in the actual image and different to the same pixel in the expected image.

All pixels which match in both input images will be transparent in the output image. If the expected image is smaller than the actual image, all pixels outside the range of the expected image are expected to be transparent.