ErrorConsumer
public class DisplayCmd extends ImageCommand
BUFFER_SIZE
Constructor | Description |
---|---|
DisplayCmd() |
Constructor.
|
DisplayCmd(boolean useGM) |
Constructor with option to use GraphicsMagick.
|
Modifier and Type | Method | Description |
---|---|---|
void |
run(Operation pOperation,
java.lang.Object... images) |
Execute the command (replace given placeholders).
|
static void |
show(java.lang.String pImageName) |
Convinience method to show the image passed as an argument.
|
consumeError, setCommand
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addProcessListener, getIInputProvider, getIProcessListener, isAsyncMode, run, setAsyncMode, setErrorConsumer, setInputProvider, setOutputConsumer, startProcess, waitForProcess
public DisplayCmd()
public DisplayCmd(boolean useGM)
useGM
- true if GraphicsMagick usedpublic static void show(java.lang.String pImageName) throws java.io.IOException, java.lang.InterruptedException, IM4JavaException
pImageName
- the image Namejava.io.IOException
- Wrong locationjava.lang.InterruptedException
- interrupted exceptionIM4JavaException
- an im4java Exception occuredpublic void run(Operation pOperation, java.lang.Object... images) throws java.io.IOException, java.lang.InterruptedException, IM4JavaException
run
in class ImageCommand
IM4JavaException
java.io.IOException
java.lang.InterruptedException