# Gimp.Item.transform_scale

    @accepts(Gimp.Item, float, float, float, float)
    @returns(Gimp.Item)
    def transform_scale(self, x0, y0, x1, y1):
        # Python wrapper for gimp_item_transform_scale()

Scale the specified item.

This procedure scales the specified item.

The 2 coordinates specify the new locations of the top-left and bottom-roght corners of the original bounding box.

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 as specified. The return value is the ID of the scaled floating selection.

If there is no selection or the item is not a drawable, the entire item will be scaled according to the specified coordinates. 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

self

  The affected item.

x0

  The new x coordinate of the upper-left corner of the scaled region.

y0

  The new y coordinate of the upper-left corner of the scaled region.

x1

  The new x coordinate of the lower-right corner of the scaled region.

y1

  The new y coordinate of the lower-right corner of the scaled region.

Returns