I’m using the LWJGL for my sprites and stuff and I have no problem with that. But because of the getRGB() method in the BufferedImage class (I want to read level maps from pngs) I have to load a BufferedImage
So… What’s wrong with this code? From everything I’ve read it should work
BufferedImage img = ImageIO.read(this.getClass().getResource("res/testMap.png"));
Here’s how my hierarchy is structures:
In my project I have these folders: src, res, lib
In my res folder, I have “testMap.png”
Hopefully it’s just something silly I don’t understand
Thanks