# Gimp.RGB.get_pixel

    @accepts(Gimp.RGB, Babl.Object, gpointer)
    @returns(none)
    def get_pixel(self, format, pixel):
        # Python wrapper for gimp_rgb_get_pixel()

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

Since 2.10

self

  a Gimp.RGB struct

format

  a Babl format

pixel

  pointer to the destination pixel