Method

GimpPathstroke_get_length

since: 2.4

Declaration [src]

gdouble
gimp_path_stroke_get_length (
  GimpPath* path,
  gint stroke_id,
  gdouble precision
)

Description [src]

Measure the length of the given stroke.

Measure the length of the given stroke.

Available since: 2.4

Parameters

stroke_id

Type: gint

The stroke ID.

precision

Type: gdouble

The precision used for approximating straight portions of the stroke.

Return value

Type: gdouble

The length (in pixels) of the given stroke.