public final class ImagesDifference extends Object implements com.aspose.ms.System.IDisposable
Represents the result class of comparing two PDF pages.
Modifier and Type | Method and Description |
---|---|
BufferedImage |
differenceToImage(Color color,
Color backgroundColor)
Converts the difference array to a bitmap image using the specified colors.
|
void |
dispose()
Performs any necessary clean up operations before the object is destroyed.
|
BufferedImage |
getDestinationImage()
Returns a new bitmap representing the destination image by applying the difference array to the source image.
|
int[] |
getDifference()
Gets the difference array.
|
int |
getHeight()
The height of difference.
|
BufferedImage |
getSourceImage()
Gets the image of first compared page.
|
int |
getStride()
The stride of difference image data.
|
public final BufferedImage getSourceImage()
Gets the image of first compared page. The image has a pixel format is 24bpp.
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.
public final int getStride()
The stride of difference image data.
public final int getHeight()
The height of difference.
public final BufferedImage getDestinationImage()
Returns a new bitmap representing the destination image by applying the difference array to the source image.
public final BufferedImage differenceToImage(Color color, Color backgroundColor)
Converts the difference array to a bitmap image using the specified colors.
color
- The color for non-zero differences.backgroundColor
- The background color for zero differences.public final void dispose()
Performs any necessary clean up operations before the object is destroyed.
dispose
in interface com.aspose.ms.System.IDisposable
Copyright © 2025 Aspose. All Rights Reserved.