drawImage method

void drawImage (Image image, Offset p, 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.

Implementation

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