Block = getImage(this.getClass().getResource("/Sprites/maptiles.png"));
Is the code I use to load an image. Is there a way to only load a portion of the png file to Block. Trying to take a tile set and put it into an array without splitting the image physically and loading it that way.
I was trying to use a bufferedImage but couldn't figure out how to draw that buffered image to the "screen"
g.drawImage(Block, 0, 0, this);and tried
Graphics2D g2 = (Graphics2D)g; g2.drawImage(Block, 0, 0, this);
and google is failing me today.