readPixels method
Implementation
readPixels(int x, int y, int width, int height, int format, int type, data) {
if (data is NativeArray) {
readPixelsNative(x, y, width, height, format, type, data);
} else {
readPixelsNormal(x, y, width, height, format, type, data);
}
}