Class Sprite

java.lang.Object
org.rspeer.game.adapter.graphics.Sprite

public class Sprite extends Object
  • Constructor Details

    • Sprite

      public Sprite()
  • Method Details

    • normalize

      public void normalize()
    • getBufferedImage

      public BufferedImage getBufferedImage()
    • drawScaledAt

      public void drawScaledAt(BufferedImage image, int x, int y, int width, int height, int sClipX, int sClipY, int eClipX, int eClipY)
    • getId

      public int getId()
    • getFrame

      public int getFrame()
    • getOffsetX

      public int getOffsetX()
    • getOffsetY

      public int getOffsetY()
    • getWidth

      public int getWidth()
    • getHeight

      public int getHeight()
    • getPixels

      public int[] getPixels()
    • getMaxWidth

      public int getMaxWidth()
    • getMaxHeight

      public int getMaxHeight()
    • getRawImage

      public BufferedImage getRawImage()
    • fromBufferedImage

      public static Sprite fromBufferedImage(BufferedImage image)