Transform the specified item in 2d.
This procedure transforms the specified item.
The transformation is done by assembling a 3x3 matrix from the coefficients passed.
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 as specified. The return value is the ID of the transformed floating selection.
If there is no selection or the item is not a drawable, the entire item will be transformed according to the specified matrix. The return value will be equal to the item ID supplied as input.
This procedure is affected by the following context setters: context_set_interpolation, context_set_transform_direction, context_set_transform_resize.
| this |
The affected item. |
| coeff_0_0 |
coefficient (0,0) of the transformation matrix. |
| coeff_0_1 |
coefficient (0,1) of the transformation matrix. |
| coeff_0_2 |
coefficient (0,2) of the transformation matrix. |
| coeff_1_0 |
coefficient (1,0) of the transformation matrix. |
| coeff_1_1 |
coefficient (1,1) of the transformation matrix. |
| coeff_1_2 |
coefficient (1,2) of the transformation matrix. |
| coeff_2_0 |
coefficient (2,0) of the transformation matrix. |
| coeff_2_1 |
coefficient (2,1) of the transformation matrix. |
| coeff_2_2 |
coefficient (2,2) of the transformation matrix. |
|
The transformed item. |