Gimp.Item.prototype.transform_rotate_simple
function transform_rotate_simple(rotate_type: Gimp.RotationType, auto_center: Boolean, center_x: Number(gdouble), center_y: Number(gdouble)): Gimp.Item {
// Gjs wrapper for gimp_item_transform_rotate_simple()
}
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. If auto_center is set to TRUE, the rotation is around the selection's center. Otherwise, the coordinate of the center point needs to be specified. The return value is the ID of the rotated floating selection.
If there is no selection or the item is not a drawable, the entire item will be rotated around its center if auto_center is set to TRUE, otherwise the coordinate of the center point 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.8
- rotate_type
Type of rotation.
- auto_center
Whether to automatically rotate around the selection center.
- center_x
The hor. coordinate of the center of rotation.
- center_y
The vert. coordinate of the center of rotation.
- Returns
The rotated item.