Package org.im4java.core
Class DisplayCmd
java.lang.Object
org.im4java.process.ProcessStarter
org.im4java.core.ImageCommand
org.im4java.core.DisplayCmd
- All Implemented Interfaces:
ErrorConsumer
This class wraps the IM command display.
-
Field Summary
Fields inherited from class org.im4java.process.ProcessStarter
BUFFER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor.DisplayCmd
(boolean useGM) Constructor with option to use GraphicsMagick. -
Method Summary
Methods inherited from class org.im4java.core.ImageCommand
consumeError, setCommand
Methods inherited from class org.im4java.process.ProcessStarter
addProcessListener, getIInputProvider, getIProcessListener, isAsyncMode, run, setAsyncMode, setErrorConsumer, setInputProvider, setOutputConsumer, startProcess, waitForProcess
-
Constructor Details
-
DisplayCmd
public DisplayCmd()Constructor. -
DisplayCmd
public DisplayCmd(boolean useGM) Constructor with option to use GraphicsMagick.- Parameters:
useGM
- true if GraphicsMagick used
-
-
Method Details
-
show
public static void show(String pImageName) throws IOException, InterruptedException, IM4JavaException Convinience method to show the image passed as an argument.- Parameters:
pImageName
- the image Name- Throws:
IOException
- Wrong locationInterruptedException
- interrupted exceptionIM4JavaException
- an im4java Exception occured
-
run
public void run(Operation pOperation, Object... images) throws IOException, InterruptedException, IM4JavaException Execute the command (replace given placeholders).- Overrides:
run
in classImageCommand
- Throws:
IM4JavaException
IOException
InterruptedException
-