# Gimp.Item.prototype.transform_matrix

    function transform_matrix(coeff_0_0: Number(gdouble), coeff_0_1: Number(gdouble), coeff_0_2: Number(gdouble), coeff_1_0: Number(gdouble), coeff_1_1: Number(gdouble), coeff_1_2: Number(gdouble), coeff_2_0: Number(gdouble), coeff_2_1: Number(gdouble), coeff_2_2: Number(gdouble)): Gimp.Item {
        // Gjs wrapper for gimp_item_transform_matrix()
    }

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: Gimp.context_set_interpolation, Gimp.context_set_transform_direction, Gimp.context_set_transform_resize.

Since 2.8

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.

Returns

  The transformed item.