I am trying to use the following method to return the number of red blue and green pixels contained in a part of an image:
public int[] getRGB(int startX,int startY,int w, int h,int[] rgbArray,
int offset,int scansize);
However i don't understand what all the parameters are for. Specifically the offset and scansize. Also, for example, if i need to split an image 9*9 (81 parts) do i need to call this method 81 times and set up 81 different arrays to store the rgb data.