public class ImageIO
extends java.lang.Object
| Constructor and Description |
|---|
ImageIO() |
| Modifier and Type | Method and Description |
|---|---|
javafx.scene.image.Image |
read(java.io.File file)
Reads a file depending on its file type and returns that data in the form of an image
|
void |
write(javafx.scene.image.Image image,
java.io.File file)
Writes an image file based on the file type being saved
|
public javafx.scene.image.Image read(java.io.File file)
file - the file to be readpublic void write(javafx.scene.image.Image image,
java.io.File file)
throws java.io.IOException
image - the image that will be writtenfile - the file that the image will be written tojava.io.IOException - if the writing to the file causes a problem