a pixel array where the image data is stored in
single pixel packed format 0xaarrggbb, with a
scanline stride equal to the image width and a
zero offset in the returned array. The returned
array is of size width * height.
if (argb != null) {
return argb;
}
int w = image.getWidth();
int h = image.getHeight();
argb = new int[w*h];
image.getRGB(argb,
0, w,
0, 0,
w, h);
return argb;