Archived
Private
Public Access
1
0
This repository has been archived on 2026-02-04. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
ProjectBackup/Java/MinecraftPlatformer/src/de/craftix/game/ImageLoader.java
2022-09-04 12:45:01 +02:00

18 lines
378 B
Java

package de.craftix.game;
import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.File;
public class ImageLoader {
public static BufferedImage load(String path){
if (path == null) return null;
try {
return ImageIO.read(new File(path));
}catch (Exception e) {e.printStackTrace();}
return null;
}
}