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

MethodDescription
differenceToImageConverts the difference array to a bitmap image using the specified colors.
disposePerforms any necessary clean up operations before the object is destroyed.
getDestinationImageReturns a new bitmap representing the destination image by applying the difference array to the source image.
getDifferenceGets the difference array. This array is similar to the original image data array obtained as a result of the LockBits method.
getHeightThe height of difference.
getSourceImageGets the image of first compared page. The image has a pixel format is 24bpp.
getStrideThe 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