Use the Boundary option to fill an area of the canvas delimited by another colour.
The cursor changes to a colour picker when dragged over the image.
The various colour channel values in areas of the image are displayed as you move the colour picker around the canvas.