ImagesDifference

ImagesDifference

Overview

ImagesDifference is a class in Aspose.PDF FOSS for .NET. Inherits from: IDisposable.

The per-pixel difference between two rendered pages, as GetDifference computes it.

This class declares 3 methods for ImagesDifference objects in .NET programs. Available methods include: DifferenceToImage, Dispose, GetDestinationImage. Public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: Difference, Height, SourceImage, Stride.

Properties

NameTypeAccessDescription
SourceImageBitmapReadThe first page as rendered (GDI+ view; see SourceRgb for the raster).
Differenceint[]ReadOne entry per pixel, row by row: -1 where the two pages agree, otherwise the destination page’s colour as 0xRRGGBB.
StrideintReadBytes per row of the source raster: the pixels, padded to RowAlignment.
HeightintReadHeight of the rasters in pixels.

Methods

SignatureDescription
GetDestinationImage()The second page, rebuilt from the source and the difference.
DifferenceToImage(color: Color, backgroundColor: Color)A mask: color where the pages differ, backgroundColor elsewhere.
Dispose()Nothing unmanaged is held; kept for the callers that dispose the result.

See Also

 English