Gimp.Drawable.prototype.get_pixel
function get_pixel(x_coord: Number(gint), y_coord: Number(gint)): [return_value: ByteArray, num_channels: Number(gint)] {
// Gjs wrapper for gimp_drawable_get_pixel()
}
Gets the value of the pixel at the specified coordinates.
This procedure gets 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.
- x_coord
The x coordinate.
- y_coord
The y coordinate.
- return_value
The pixel value. The returned value must be freed with g_free().
- num_channels
The number of channels for the pixel.