putImageData method

void putImageData(
  1. ImageData imagedata,
  2. int dx,
  3. int dy, [
  4. int? dirtyX,
  5. int? dirtyY,
  6. int? dirtyWidth,
  7. int? dirtyHeight,
])

Implementation

void putImageData(
  ImageData imagedata,
  int dx,
  int dy, [
  int? dirtyX,
  int? dirtyY,
  int? dirtyWidth,
  int? dirtyHeight,
]) {
  if (dirtyX == null &&
      dirtyY == null &&
      dirtyWidth == null &&
      dirtyHeight == null) {
    var imagedata_1 = convertDartToNative_ImageData(imagedata);
    _putImageData_1(imagedata_1, dx, dy);
    return;
  }
  if (dirtyHeight != null &&
      dirtyWidth != null &&
      dirtyY != null &&
      dirtyX != null) {
    var imagedata_1 = convertDartToNative_ImageData(imagedata);
    _putImageData_2(
      imagedata_1,
      dx,
      dy,
      dirtyX,
      dirtyY,
      dirtyWidth,
      dirtyHeight,
    );
    return;
  }
  throw new ArgumentError("Incorrect number or type of arguments");
}