Skip to content
Permalink
e2cc7035e3
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
18 lines (12 sloc) 384 Bytes
package main;
import java.awt.image.BufferedImage;
public class SpriteSheet {
private BufferedImage image;
public SpriteSheet(BufferedImage image){
this.image = image;
}
public BufferedImage grabimage(int col, int row, int width, int height){
BufferedImage img= image.getSubimage((col * 64) - 64, (row * 64)-64, width, height);
return img;
}
}