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;
- class BufferedImageLoader {
- BufferedImage loadImage(String path) throws IOException {
- // TODO Auto-generated method stub
- return ImageIO.read(getClass().getResource(path));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment