gimp-drawable-get-pixel

Spencer Kimball & Peter Mattis

Description

Gets the value of the pixel at the specified coordinates.

Help

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.


Type

unknown

Parameters

Type Name Description
PF_DRAWABLE drawable The drawable
PF_INT x-coord The x coordinate (x-coord >= 0)
PF_INT y-coord The y coordinate (y-coord >= 0)

Return

Type Name Description
PF_INT num-channels The number of channels for the pixel (num-channels >= 0)
unknown pixel The pixel value