Path
Object Hierarchy:
Description:
[
CCode ( type_id =
"gimp_path_get_type ()" ) ]
public class Path :
Item
Functions for querying and manipulating path.
Content:
Static methods:
Creation methods:
Methods:
- public bool bezier_stroke_conicto (int stroke_id, double x0, double y0, double x1, double y1)
Extends a bezier stroke with a conic bezier spline.
- public bool bezier_stroke_cubicto (int stroke_id, double x0, double y0, double x1, double y1, double x2, double y2)
Extends a bezier stroke with a cubic bezier spline.
- public bool bezier_stroke_lineto (int stroke_id, double x0, double y0)
Extends a bezier stroke with a lineto.
- public int bezier_stroke_new_ellipse (double x0, double y0, double radius_x, double radius_y, double angle)
Adds a bezier stroke describing an ellipse the path object.
- public int bezier_stroke_new_moveto (double x0, double y0)
Adds a bezier stroke with a single moveto to the path object.
- public unowned Path copy ()
Copy a path object.
- public int32[] get_strokes ()
List the strokes associated with the passed path.
- public bool remove_stroke (int stroke_id)
remove the stroke from a path object.
- public bool stroke_close (int stroke_id)
closes the specified stroke.
- public bool stroke_flip (int stroke_id, OrientationType flip_type, double axis)
flips the given stroke.
- public bool stroke_flip_free (int stroke_id, double x1, double y1, double x2, double y2)
flips the given stroke about an arbitrary axis.
- public double stroke_get_length (int stroke_id, double precision)
Measure the length of the given stroke.
- public bool stroke_get_point_at_dist (int stroke_id, double dist, double precision, out double x_point, out double y_point, out double slope, out bool valid)
Get point at a specified distance along the stroke.
- public PathStrokeType stroke_get_points (int stroke_id, out double[] controlpoints, out bool closed)
returns the control points of a stroke.
- public double[] stroke_interpolate (int stroke_id, double precision, out bool closed)
returns polygonal approximation of the stroke.
- public int stroke_new_from_points (PathStrokeType type, double[] controlpoints, bool closed)
Adds a stroke of a given type to the path object.
- public bool stroke_reverse (int stroke_id)
reverses the specified stroke.
- public bool stroke_rotate (int stroke_id, double center_x, double center_y, double angle)
rotates the given stroke.
- public bool stroke_scale (int stroke_id, double scale_x, double scale_y)
scales the given stroke.
- public bool stroke_translate (int stroke_id, double off_x, double off_y)
translate the given stroke.
Inherited Members:
All known members inherited from class Gimp.Item
All known members inherited from class GLib.Object