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
| Name | Type | Access | Description |
|---|---|---|---|
SourceImage | Bitmap | Read | The first page as rendered (GDI+ view; see SourceRgb for the raster). |
Difference | int[] | Read | One entry per pixel, row by row: -1 where the two pages agree, otherwise the destination page’s colour as 0xRRGGBB. |
Stride | int | Read | Bytes per row of the source raster: the pixels, padded to RowAlignment. |
Height | int | Read | Height of the rasters in pixels. |
Methods
| Signature | Description |
|---|---|
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. |