pub struct PolylineRegion(/* private fields */);v1_18 only.Implementations§
Source§impl PolylineRegion
impl PolylineRegion
Sourcepub fn polyline_points(&self) -> Vec<(i32, i32)>
pub fn polyline_points(&self) -> Vec<(i32, i32)>
Get the points in a polyline region.
This returns the values in the reference coordinate space (from the parent region item).
A polyline is a sequence of points that does not form a closed shape. Even if the polyline is closed, the only points that are part of the region are those that intersect (even minimally) a one-pixel line drawn along the polyline. The points are returned as pairs of (X, Y) coordinates.
Sourcepub fn polyline_points_transformed(&self, image_id: ItemId) -> Vec<(f64, f64)>
pub fn polyline_points_transformed(&self, image_id: ItemId) -> Vec<(f64, f64)>
Get the transformed points in a polyline region.
This returns the coordinates in pixels after all transformative properties have been applied.
A polyline is a sequence of points that does not form a closed shape. Even if the polyline is closed, the only points that are part of the region are those that intersect (even minimally) a one-pixel line drawn along the polyline. The points are returned as pairs of (X, Y) coordinates.