ok, but i see you not free the memblock. DeleteMemblock ( memID )
maybe also better use a fix image id. GetImage( imageID, x, y, width, height ) and maybe a static memblock too CreateMemblockFromImage( memID, imageID )
its also possible to make a color integer from it with MakeColor , read later with GetColorBlue ( color ) GetColorGreen ( color ) GetColorRed ( color )
if you use this systax you can generate this hex value in one row
rgb$=Right("0"+Hex(a),2) + Right("0"+Hex(b),2) + Right("0"+Hex(c),2)
AGK (Steam) V2.0.18 : Windows 10 Pro 64 Bit : AMD (15.30.1025) Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)