Gimp.Drawable.set_pixel

@accepts(Gimp.Drawable, int, int, int, [guint8])
@returns(bool)
def set_pixel(self, x_coord, y_coord, num_channels, pixel):
    # Python wrapper for gimp_drawable_set_pixel()
  

Sets the value of the pixel at the specified coordinates.

This procedure sets the pixel value at the specified coordinates. The 'num_channels' argument must always be equal to the bytes-per-pixel value for the specified drawable. Note that this function is not undoable, you should use it only on drawables you just created yourself.

self

The drawable.

x_coord

The x coordinate.

y_coord

The y coordinate.

num_channels

The number of channels for the pixel.

pixel

The pixel value.

Returns