drawImage method

void drawImage (
  1. Image image,
  2. Offset p,
  3. Paint paint

Draws the given Image into the canvas with its top-left corner at the given Offset. The image is composited into the canvas using the given Paint.


void drawImage(Image image, Offset p, Paint paint) {
  assert(image != null); // image is checked on the engine side
  assert(paint != null);
  _drawImage(image, p.dx, p.dy, paint._objects, paint._data);