Package playn.core

Interface Canvas.Drawable

All Known Implementing Classes:
Image, Image.Region, ImageImpl
Enclosing class:
Canvas

public static interface Canvas.Drawable
Facilitates drawing images and image regions to a canvas.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    draw(Object gc, float x, float y, float width, float height)
     
    void
    draw(Object gc, float dx, float dy, float dw, float dh, float sx, float sy, float sw, float sh)
     
    float
     
    float
     
  • Method Details

    • width

      float width()
    • height

      float height()
    • draw

      void draw(Object gc, float x, float y, float width, float height)
    • draw

      void draw(Object gc, float dx, float dy, float dw, float dh, float sx, float sy, float sw, float sh)