@Override public Canvas drawImage(Image img, float dx, float dy, float dw, float dh, float sx, float sy, float sw, float sh) { @SuppressWarnings("unchecked") AbstractImageGL<GC> d = (AbstractImageGL<GC>) img; d.draw(gc(), dx, dy, dw, dh, sx, sy, sw, sh); isDirty = true; return this; }
@Override public Canvas drawImage(Image img, float x, float y) { return drawImage(img, x, y, img.width(), img.height()); }
@Override public Canvas drawImageCentered(Image img, float x, float y) { return drawImage(img, x - img.width()/2, y - img.height()/2); }
@Override public Canvas drawImage(Image img, float x, float y, float w, float h) { @SuppressWarnings("unchecked") AbstractImageGL<GC> d = (AbstractImageGL<GC>) img; d.draw(gc(), x, y, w, h); isDirty = true; return this; }