java.lang.Object
me.deecaad.weaponmechanics.weapon.shoot.spread.Sprite

public class Sprite extends Object
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 Details

  • Method Details

    • getPixels

      public int[][] getPixels()
    • getHeight

      public int getHeight()
    • getWidth

      public int getWidth()