stroke_get_length


Description:

[ Version ( since = "2.4" ) ]
public double stroke_get_length (int stroke_id, double precision)

Measure the length of the given stroke.

Measure the length of the given stroke.

Parameters:

this

The path object.

stroke_id

The stroke ID.

precision

The precision used for approximating straight portions of the stroke.

Returns:

The length (in pixels) of the given stroke.