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.
24 lines
487 B
Java
24 lines
487 B
Java
package de.thm.tlf.photoViewer.data;
|
|
|
|
import javafx.scene.image.Image;
|
|
|
|
import java.io.FileInputStream;
|
|
import java.io.FileNotFoundException;
|
|
import java.io.InputStream;
|
|
|
|
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;
|
|
}
|
|
}
|