gimp-item-transform-scale

Michael Natterer <mitch@gimp.org>

Description

Scale the specified item.

Help

This procedure scales 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 scaled by the specified amount. The return value is the ID of the scaled 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 scaled 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 x0 The new x coordinate of the upper-left corner of the scaled region
PF_FLOAT y0 The new y coordinate of the upper-left corner of the scaled region
PF_FLOAT x1 The new x coordinate of the lower-right corner of the scaled region
PF_FLOAT y1 The new y coordinate of the lower-right corner of the scaled region

Return

Type Name Description
unknown item The scaled item