gimp-item-transform-shear

Michael Natterer <mitch@gimp.org>

Description

Shear the specified item about its center by the specified magnitude.

Help

This procedure shears 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 sheard by the specified amount. The return value is the ID of the sheard 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 sheard drawable. The shear type parameter indicates whether the shear will be applied horizontally or vertically. The magnitude can be either positive or negative and indicates the extent (in pixels) to shear by. 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_INT shear-type Type of shear { ORIENTATION-HORIZONTAL (0), ORIENTATION-VERTICAL (1) }
PF_FLOAT magnitude The magnitude of the shear

Return

Type Name Description
unknown item The sheared item