Gimp.Item.transform_flip

@accepts(Gimp.Item, float, float, float, float)
@returns(Gimp.Item)
def transform_flip(self, x0, y0, x1, y1):
    # Python wrapper for gimp_item_transform_flip()
  

Flip the specified item around a given line.

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. The axis to flip around is specified by specifying two points from that line. 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 the specified axis. 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_interpolation, Gimp.context_set_transform_direction, Gimp.context_set_transform_resize.

Since 2.8

self

The affected item.

x0

horz. coord. of one end of axis.

y0

vert. coord. of one end of axis.

x1

horz. coord. of other end of axis.

y1

vert. coord. of other end of axis.

Returns