You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
526 B
Java

package de.thm.tlf.photoViewer.data;
import javafx.scene.image.Image;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
/**
* Data Class that is used for Image-Handling and -storing
*/
public class Picture {
private Image image;
public Picture (String fileRef) {
try {
image = new Image(new FileInputStream(fileRef));
} catch (FileNotFoundException e) {
e.printStackTrace();
}
}
public Image getImage() {
return image;
}
}