Gimp.Item.prototype.transform_flip_simple
function transform_flip_simple(flip_type: Gimp.OrientationType, auto_center: Boolean, axis: Number(gdouble)): Gimp.Item {
// Gjs wrapper for gimp_item_transform_flip_simple()
}
Flip the specified item either vertically or horizontally.
This procedure flips the specified item.
If a selection exists and the item is a drawable, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then flipped. If auto_center is set to TRUE, the flip is around the selection's center. Otherwise, the coordinate of the axis needs to be specified. The return value is the ID of the flipped floating selection.
If there is no selection or the item is not a drawable, the entire item will be flipped around its center if auto_center is set to TRUE, otherwise the coordinate of the axis needs to be specified. The return value will be equal to the item ID supplied as input.
This procedure is affected by the following context setters: Gimp.context_set_transform_resize.
Since 2.2
- flip_type
Type of flip.
- auto_center
Whether to automatically position the axis in the selection center.
- axis
coord. of flip axis.
- Returns
The flipped item.