Package com.itextpdf.io.util
Class ImageMagickCompareResult
java.lang.Object
com.itextpdf.io.util.ImageMagickCompareResult
A helper data class, which aggregates true/false result of ImageMagick comparing
as well as the number of different pixels.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionImageMagickCompareResult
(boolean result, long diffPixels) Creates an instance that contains ImageMagick comparing result information. -
Method Summary
Modifier and TypeMethodDescriptionlong
Getter for a different pixels count.boolean
Returns image compare boolean value.
-
Field Details
-
result
private final boolean result -
diffPixels
private final long diffPixels
-
-
Constructor Details
-
ImageMagickCompareResult
public ImageMagickCompareResult(boolean result, long diffPixels) Creates an instance that contains ImageMagick comparing result information.- Parameters:
result
- true, if the compared images are equal.diffPixels
- number of different pixels.
-
-
Method Details
-
isComparingResultSuccessful
public boolean isComparingResultSuccessful()Returns image compare boolean value.- Returns:
- true if the compared images are equal.
-
getDiffPixels
public long getDiffPixels()Getter for a different pixels count.- Returns:
- Returns a a different pixels count.
-