putImageData method

void putImageData(ImageData imagedata, num dx, num dy, [ num dirtyX, num dirtyY, num dirtyWidth, num dirtyHeight ])

Source

void putImageData(ImageData imagedata, num dx, num dy,
    [num dirtyX, num dirtyY, num dirtyWidth, num dirtyHeight]) {
  if ((dy is num) &&
      (dx is num) &&
      (imagedata is ImageData) &&
      dirtyX == null &&
      dirtyY == null &&
      dirtyWidth == null &&
      dirtyHeight == null) {
    _blink.BlinkCanvasRenderingContext2D.instance.putImageData_Callback_3_(
        this, convertDartToNative_ImageData(imagedata), dx, dy);
    return;
  }
  if ((dirtyHeight is num) &&
      (dirtyWidth is num) &&
      (dirtyY is num) &&
      (dirtyX is num) &&
      (dy is num) &&
      (dx is num) &&
      (imagedata is ImageData)) {
    _blink.BlinkCanvasRenderingContext2D.instance.putImageData_Callback_7_(
        this,
        convertDartToNative_ImageData(imagedata),
        dx,
        dy,
        dirtyX,
        dirtyY,
        dirtyWidth,
        dirtyHeight);
    return;
  }
  throw new ArgumentError("Incorrect number or type of arguments");
}

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-html/CanvasRenderingContext2D/putImageData.html