select_item


Description:

[ Version ( since = "2.8" ) ]
public bool select_item (ChannelOps operation, Item item)

Transforms the specified item into a selection

This procedure renders the item's outline into the current selection of the image the item belongs to. What exactly the item's outline is depends on the item type: for layers, it's the layer's alpha channel, for paths the path's shape.

This procedure is affected by the following context setters: context_set_antialias, context_set_feather, context_set_feather_radius.

Parameters:

this

The image.

operation

The desired operation with current selection.

item

The item to render to the selection.

Returns:

TRUE on success.