Gimp.Image.prototype.pick_correlate_layer
function pick_correlate_layer(x: Number(gint), y: Number(gint)): Gimp.Layer {
// Gjs wrapper for gimp_image_pick_correlate_layer()
}
Find the layer visible at the specified coordinates.
This procedure finds the layer which is visible at the specified coordinates. Layers which do not qualify are those whose extents do not pass within the specified coordinates, or which are transparent at the specified coordinates. This procedure will return -1 if no layer is found.
- x
The x coordinate for the pick.
- y
The y coordinate for the pick.
- Returns
The layer found at the specified coordinates.