Package playn.java

Class JavaImage

All Implemented Interfaces:
AutoCloseable, Canvas.Drawable, Closeable

public class JavaImage extends ImageImpl
  • Constructor Details

  • Method Details

    • bufferedImage

      public BufferedImage bufferedImage()
      Returns the BufferedImage that underlies this image. This is for games that need to write custom backend code to do special stuff. No promises are made, caveat coder.
    • createPattern

      public Pattern createPattern(boolean repeatX, boolean repeatY)
      Specified by:
      createPattern in class Image
    • getRgb

      public void getRgb(int startX, int startY, int width, int height, int[] rgbArray, int offset, int scanSize)
      Specified by:
      getRgb in class Image
    • setRgb

      public void setRgb(int startX, int startY, int width, int height, int[] rgbArray, int offset, int scanSize)
      Specified by:
      setRgb in class Image
    • transform

      public Image transform(Image.BitmapTransformer xform)
      Specified by:
      transform in class Image
    • draw

      public void draw(Object ctx, float x, float y, float w, float h)
    • draw

      public void draw(Object ctx, float dx, float dy, float dw, float dh, float sx, float sy, float sw, float sh)
    • toString

      public String toString()
      Overrides:
      toString in class Object