gimp-item-transform-matrix

Michael Natterer <mitch@gimp.org>

Description

Transform the specified item in 2d.

Help

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 assembling a 3x3 matrix from the coefficients passed. The return value is the ID of the transformed 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 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'.


Type

unknown

Parameters

Type Name Description
unknown item The affected item
PF_FLOAT coeff-0-0 coefficient (0,0) of the transformation matrix
PF_FLOAT coeff-0-1 coefficient (0,1) of the transformation matrix
PF_FLOAT coeff-0-2 coefficient (0,2) of the transformation matrix
PF_FLOAT coeff-1-0 coefficient (1,0) of the transformation matrix
PF_FLOAT coeff-1-1 coefficient (1,1) of the transformation matrix
PF_FLOAT coeff-1-2 coefficient (1,2) of the transformation matrix
PF_FLOAT coeff-2-0 coefficient (2,0) of the transformation matrix
PF_FLOAT coeff-2-1 coefficient (2,1) of the transformation matrix
PF_FLOAT coeff-2-2 coefficient (2,2) of the transformation matrix

Return

Type Name Description
unknown item The transformed item