# Gimp.rgba_get_pixel

    function rgba_get_pixel(rgba: Gimp.RGB, format: Babl.Object): void {
        // Gjs wrapper for gimp_rgba_get_pixel()
    }

Writes the red, green, blue and alpha components of rgba to the color stored in @pixel. The pixel format of @pixel is determined by format.

Since 2.10

rgba

  a Gimp.RGB struct

format

  a Babl format

Returns

  pointer to the destination pixel