gimp_path_set_locked << INDEX >> gimp_path_set_tattoo

gimp_path_set_points (1999)

NAME
gimp_path_set_points - Set the points associated with the named path.
SYNOPSIS
gimp_path_set_points (image,pathname,ptype,num_path_points,points_pairs)
DESCRIPTION
Set the points associated with the named path.
INPUT ARGUMENTS
TYPENAMEDESCRIPTION
IMAGEimageThe ID of the image to set the paths in
STRINGpathnameThe name of the path to create (if it exists then a unique name will be created - query the list of paths if you want to make sure that the name of the path you create is unique. This will be set as the current path.
INT32ptypeThe type of the path. Currently only one type (1 = Bezier) is supported
INT32num_path_pointsThe number of points in the path. Each point is made up of (x,y,type) of floats. Currently only the creation of bezier curves is allowed. The type parameter must be set to (1) to indicate a BEZIER type curve. For BEZIERS. Note the that points must be given in the following order... ACCACCAC ... If the path is not closed the last control point is missed off. Points consist of three control points (control/anchor/control) so for a curve that is not closed there must be at least two points passed (2 x,y pairs). If num_path_pnts % 3 = 0 then the path is assumed to be closed and the points are ACCACCACCACC.
FLOATARRAYpoints_pairsThe points in the path represented as 3 floats. The first is the x pos, next is the y pos, last is the type of the pnt. The type field is dependant on the path type. For beziers (type 1 paths) the type can either be {1.0= BEZIER_ANCHOR, 2.0= BEZIER_CONTROL}. Note all points are returned in pixel resolution
SOME SYNTAX ALTERNATIVES
$image->path_set_points (pathname,ptype,points_pairs)
AUTHOR
Andy Thomas
(c)1999 Andy Thomas


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