Class Sprite
java.lang.Object
me.deecaad.weaponmechanics.weapon.shoot.spread.Sprite
This class parses an image input (Usually a .png file) and saves each pixel in the image into a
buffer. Each pixel can then be accessed, assuming you have an x and y coordinate to use.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Sprite
- Throws:
IOException
-
-
Method Details
-
getPixels
public int[][] getPixels() -
getHeight
public int getHeight() -
getWidth
public int getWidth()
-