gimp-item-transform-rotate

Michael Natterer <mitch@gimp.org>

Description

Rotate the specified item about given coordinates through the specified angle.

Help

This function rotates 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 rotated by the specified amount. The return value is the ID of the rotated item. If there was no selection or the item is not a drawable, this will be equal to the item ID supplied as input. Otherwise, this will be the newly created and rotated drawable. This procedure is affected by the following context setters: 'gimp-context-set-interpolation', 'gimp-context-set-transform-direction', 'gimp-context-set-transform-resize'.


Type

unknown

Parameters

Type Name Description
unknown item The affected item
PF_FLOAT angle The angle of rotation (radians)
PF_INT auto-center Whether to automatically rotate around the selection center (TRUE or FALSE)
PF_FLOAT center-x The hor. coordinate of the center of rotation
PF_FLOAT center-y The vert. coordinate of the center of rotation

Return

Type Name Description
unknown item The rotated item