Gimp.RGB.prototype.get_pixel

function get_pixel(format: Babl.Object): void {
    // Gjs wrapper for gimp_rgb_get_pixel()
}
  

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

Since 2.10

format

a Babl format

Returns

pointer to the destination pixel