public class OpenImageFileCommand
extends java.lang.Object
Constructor and Description |
---|
OpenImageFileCommand() |
Modifier and Type | Method and Description |
---|---|
static java.awt.Image |
getImage(java.io.PrintStream outAndErrStream,
TurtleField turtleField)
Asks for, gets, and returns an image file
|
static java.awt.Image |
readImageFile(TurtleField turtleField,
java.io.File imageFile)
Takes a file and extracts the image contained therein
|
public static java.awt.Image getImage(java.io.PrintStream outAndErrStream, TurtleField turtleField) throws java.io.IOException
outAndErrStream
- Stream for notificationsjava.io.IOException
- In case the file is no goodpublic static java.awt.Image readImageFile(TurtleField turtleField, java.io.File imageFile) throws java.io.IOException
turtleField
- imageFile
- java.io.IOException