Advertisement
pseudocreator

jgd BufferedImageLoader.java

May 18th, 2014
550
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.34 KB | None | 0 0
  1. package com.game.src.main;
  2. import java.awt.image.BufferedImage;
  3. import java.io.IOException;
  4.  
  5. import javax.imageio.ImageIO;
  6.  
  7.  
  8. public class BufferedImageLoader {
  9.  
  10.     private BufferedImage image;
  11.    
  12.     public BufferedImage loadImage(String path) throws IOException{
  13.         image = ImageIO.read(getClass().getResource(path));
  14.         return image;
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement