2010
Michael Natterer
Transform the specified item in 2d.
This procedure transforms 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 transformed. The transformation is done by scaling the image by the x and y scale factors about the point (source_x, source_y), then rotating around the same point, then translating that point to the new position (dest_x, dest_y). The return value is the ID of the rotated drawable. 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 transformed 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 | source-x | X coordinate of the transformation center |
PF_FLOAT | source-y | Y coordinate of the transformation center |
PF_FLOAT | scale-x | Amount to scale in x direction |
PF_FLOAT | scale-y | Amount to scale in y direction |
PF_FLOAT | angle | The angle of rotation (radians) |
PF_FLOAT | dest-x | X coordinate of where the center goes |
PF_FLOAT | dest-y | Y coordinate of where the center goes |
Type | Name | Description |
---|---|---|
unknown | item | The transformed item |