Posted By

resurge on 04/24/09


Tagged

image load jar


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

appx


Load image from jar/working directory


 / Published in: Java
 

  1. private BufferedImage loadImage(String path) {
  2. try {
  3. return ImageIO.read(this.getClass().getResource(path));
  4. } catch (IOException e) {
  5. return null;
  6. }
  7. }

Report this snippet  

You need to login to post a comment.