readPixels method

void readPixels(
  1. int x,
  2. int y,
  3. int width,
  4. int height,
  5. int format,
  6. int type,
  7. NativeArray<num> data,
)

Implementation

void readPixels(int x, int y, int width, int height, int format, int type,
    NativeArray data) {
  // if (data is NativeArray) {
  readPixelsNative(x, y, width, height, format, type, data.data.cast<Void>());
  // } else {
  //   readPixelsNormal(x, y, width, height, format, type, data);
  // }
}