int offset = y*widthOfImage*3+x*3;byte blue = myArray[offset];byte green = myArray[offset+1];byte red = myArray[offset+2];