Carrying on from the above, if you would like the colour components returned into separate variables then the following function will be useful to you.
Simply pass the function the value returned from ReadPixel and the four variables you want the results returned in.
Function GetRGB(argb:Int,a Var,r Var, g Var, b Var) a=(argb Shr 24) & $ff r=(argb Shr 16) & $ff g=(argb Shr 8) & $ff b=argb & $ff End Function Global alpha:Int,red:Int,green:Int,blue:Int GetRGB($f0ff800f,alpha,red,green,blue)
Simply pass the function the value returned from ReadPixel and the four variables you want the results returned in.