how read pixel from canvas , speed code ???
Function GetPixel(x:Int, y:Int, r:Int Var, g:Int Var, b:Int Var)
Local TempPixmap:TPixmap = GrabPixmap(x,y,1,1)
Local TempPtr:Byte Ptr = TempPixmap.PixelPtr(0,0)
r = TempPtr[2]
g = TempPtr[1]
b = TempPtr[0]
End Function
Function GetPixel(x:Int, y:Int, r:Int Var, g:Int Var, b:Int Var)
Local TempPixmap:TPixmap = GrabPixmap(x,y,1,1)
Local TempPtr:Byte Ptr = TempPixmap.PixelPtr(0,0)
r = TempPtr[2]
g = TempPtr[1]
b = TempPtr[0]
End Function