Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.game.src.main;
- import java.awt.image.BufferedImage;
- import java.io.IOException;
- import javax.imageio.ImageIO;
- public class BufferedImageLoader {
- private BufferedImage image;
- public BufferedImage loadImage(String path) throws IOException{
- image = ImageIO.read(getClass().getResource(path));
- return image;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement