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.
-
Constructor Summary
ConstructorDescriptionImageMagickCompareResult
(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.
-
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.
-