… = Image[…] (gb.image)

Dim hImage As Image
Dim anInteger As Integer
anInteger = hImage [ X As Integer, Y As Integer ]

Returns the color of the (x, y) pixel in Gambas pixel format. For more information on pixel formats, see Image Management In Gambas.