ImagesDifference
Inheritance: java.lang.Object, com.aspose.pdf.comparison.graphicalcomparison.ImagesDifference
All Implemented Interfaces: com.aspose.ms.System.IDisposable
public final class ImagesDifference extends Object implements com.aspose.ms.System.IDisposable
Represents the result class of comparing two PDF pages.
Methods
| Method | Description |
|---|---|
| differenceToImage | Converts the difference array to a bitmap image using the specified colors. |
| dispose | Performs any necessary clean up operations before the object is destroyed. |
| getDestinationImage | Returns a new bitmap representing the destination image by applying the difference array to the source image. |
| getDifference | Gets the difference array. This array is similar to the original image data array obtained as a result of the LockBits method. |
| getHeight | The height of difference. |
| getSourceImage | Gets the image of first compared page. The image has a pixel format is 24bpp. |
| getStride | The stride of difference image data. |
differenceToImage
Converts the difference array to a bitmap image using the specified colors.
dispose
public final void dispose()
Performs any necessary clean up operations before the object is destroyed.
getDestinationImage
public final BufferedImage getDestinationImage()
Returns a new bitmap representing the destination image by applying the difference array to the source image.
Returns: A destination image.
getDifference
public final int[] getDifference()
Gets the difference array. This array is similar to the original image data array obtained as a result of the LockBits method.
Returns: int[] array
getHeight
public final int getHeight()
The height of difference.
Returns: int value
getSourceImage
public final BufferedImage getSourceImage()
Gets the image of first compared page. The image has a pixel format is 24bpp.
Returns: BufferedImage instance
getStride
public final int getStride()
The stride of difference image data.
Returns: int value