Gimp.Layer.get_by_id
function get_by_id(layer_id: Number(gint32)): Gimp.Layer {
// Gjs wrapper for gimp_layer_get_by_id()
}
Returns a Gimp.Layer representing layer_id. This function calls Gimp.Item.get_by_id and returns the item if it is layer or null otherwise.
Since 3.0
- layer_id
The layer id.
- Returns
a Gimp.Layer for layer_id or null if layer_id does not represent a valid layer. The object belongs to libgimp and you must not modify or unref it.