View Single Post
  #1 (permalink)  
Old 03-07-2008, 02:55 PM
shaungoater shaungoater is offline
Member
 
Join Date: Nov 2007
Posts: 13
shaungoater is on a distinguished road
Image class (getRGB)
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:

Code:
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.
Reply With Quote
Sponsored Links