2010
Michael Natterer
Rotate the specified item about given coordinates through the specified angle.
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'.
unknown
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 |
Type | Name | Description |
---|---|---|
unknown | item | The rotated item |