Image[…] = … (gb.image)

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

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