public void Getpixels (int[] pixels, int offset, int stride, int x, int y, int width, int height)
Copy the data from the bitmap to pixels[]. Each one is represented by an int value that represents the color value. The amplitude parameter indicates the pixel array line spacing allowed by the caller. For the usual fill result, just pass the width value to the amplitude parameter.
Parameters
pixels array to receive bitmap color values
The first pixel index value in offset write to pixels[]
Stride Pixels[] The number of line spacing (must be greater than or equal to the bitmap width). Can be a negative number
x The x-coordinate value of the first pixel read from the bitmap.
Y the y-coordinate value of the first pixel read from a bitmap
Width of pixels read from each row
Number of rows read by height
Abnormal
Iilegalargumentexcepiton is thrown if the x,y,width,height is out of bounds or if the absolute value of stride is less than the bitmap width.
ArrayIndexOutOfBoundsException is thrown if the number of pixels in the array is too small to receive the pixel value of the specified bibliography.
RELATED links:
http://ranlic.iteye.com/blog/1313735//introduce getpixels function
Android+bitmap Class