public class MakeImageDiff
extends java.lang.Object
MAKEDIFF.BAT File:
==================
SET CP=%SAFSDIR%\lib\safs.jar SET EX=%SAFSDIR%\jre\bin\java.exe %EX% -cp %CP% org.safs.image.MakeImageDiff -bench %1 -actual %2 -diff %3INVOCATION:
makediff pathTo\BenchImage.ext pathTo\ActualImage.ext pathTo\DiffImage.ext
Modifier and Type | Field and Description |
---|---|
(package private) java.io.File |
actual |
(package private) java.lang.String |
actualpath |
static java.lang.String |
ARG_ACTUAL |
static java.lang.String |
ARG_BENCH |
static java.lang.String |
ARG_DIFF |
(package private) java.io.File |
bench |
(package private) java.lang.String |
benchpath |
(package private) java.io.File |
diff |
(package private) java.awt.image.BufferedImage |
diffimg |
(package private) java.lang.String |
diffpath |
static java.lang.String |
TXT_HELP |
Constructor and Description |
---|
MakeImageDiff() |
MakeImageDiff(java.io.File bench,
java.io.File actual,
java.io.File diff) |
Modifier and Type | Method and Description |
---|---|
java.awt.image.BufferedImage |
createImageDiff()
Can only be called if processArgs or the Constructor has already provided the necessary
bench and actual Files to compare.
|
java.awt.image.BufferedImage |
createImageDiff(java.io.File bench,
java.io.File actual,
java.io.File diff) |
java.awt.image.BufferedImage |
getImageDiff() |
static void |
main(java.lang.String[] args) |
void |
processArgs(java.lang.String[] args)
-bench fullPath/To/BenchmarkImage.ext
-actual fullPath/To/ActualImage.ext -diff fullPath/To/DiffImage.ext (optional) |
public static final java.lang.String TXT_HELP
public static final java.lang.String ARG_BENCH
public static final java.lang.String ARG_ACTUAL
public static final java.lang.String ARG_DIFF
java.io.File bench
java.io.File actual
java.io.File diff
java.lang.String benchpath
java.lang.String actualpath
java.lang.String diffpath
java.awt.image.BufferedImage diffimg
public MakeImageDiff()
public MakeImageDiff(java.io.File bench, java.io.File actual, java.io.File diff)
public void processArgs(java.lang.String[] args) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public java.awt.image.BufferedImage createImageDiff() throws java.lang.IllegalArgumentException, java.io.IOException
java.lang.IllegalArgumentException
java.io.IOException
public java.awt.image.BufferedImage createImageDiff(java.io.File bench, java.io.File actual, java.io.File diff) throws java.lang.IllegalArgumentException, java.io.IOException
bench
- -- Existing image benchmark to compare.actual
- -- Existing image to compare with the benchmark.diff
- File to persist the diff image to the file system. Can be null to be ignored.java.lang.IllegalArgumentException
java.io.IOException
public java.awt.image.BufferedImage getImageDiff()
createImageDiff(File, File, File)
public static void main(java.lang.String[] args)
Copyright © SAS Institute. All Rights Reserved.