gimp_threshold << INDEX >> gimp_undo_push_group_end

gimp_transform_2d (1995-1996)

NAME
gimp_transform_2d - Transform the specified drawable in 2d.
SYNOPSIS
drawable = gimp_transform_2d (drawable,interpolation,source_x,source_y,scale_x,scale_y,angle,dest_x,dest_y)
DESCRIPTION
This tool transforms the specified drawable if no selection exists. If a selection exists, 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 interpolation parameter can be set to TRUE to indicate that either linear or cubic interpolation should be used to smooth the resulting drawable. The transformation is done by scaling the image by the x and y scale factors about the point (source_x, source_y), then rotating around the same point, then translating that point to the new position (dest_x, dest_y). The return value is the ID of the rotated drawable. If there was no selection, this will be equal to the drawable ID supplied as input. Otherwise, this will be the newly created and transformed drawable.
INPUT ARGUMENTS
TYPENAMEDESCRIPTION
DRAWABLEdrawableThe affected drawable
INT32interpolationWhether to use interpolation
FLOATsource_xX coordinate of the transformation center
FLOATsource_yY coordinate of the transformation center
FLOATscale_xAmount to scale in x direction
FLOATscale_yAmount to scale in y direction
FLOATangleThe angle of rotation (radians)
FLOATdest_xX coordinate of where the centre goes
FLOATdest_yY coordinate of where the centre goes
RETURN VALUES
TYPENAMEDESCRIPTION
DRAWABLEdrawableThe transformed drawable
SOME SYNTAX ALTERNATIVES
drawable = $drawable->transform_2d (interpolation,source_x,source_y,scale_x,scale_y,angle,dest_x,dest_y)
AUTHOR
Spencer Kimball & Peter Mattis
(c)1995-1996 Spencer Kimball & Peter Mattis


This page was created by gimpdoc, written by Marc Lehmann <pcg@goof.com>