pub struct PolygonRegion(/* private fields */);Available on crate feature
v1_18 only.Implementations§
Source§impl PolygonRegion
impl PolygonRegion
Sourcepub fn polygon_points(&self) -> Vec<(i32, i32)>
pub fn polygon_points(&self) -> Vec<(i32, i32)>
Get the points in a polygon region.
This returns the values in the reference coordinate space (from the parent region item).
A polygon is a sequence of points that form a closed shape. The first point does not need to be repeated as the last point. All the interior points and the edge are part of the region. The points are returned as pairs of (X, Y) coordinates.
Sourcepub fn polygon_points_transformed(&self, image_id: ItemId) -> Vec<(f64, f64)>
pub fn polygon_points_transformed(&self, image_id: ItemId) -> Vec<(f64, f64)>
Get the transformed points in a polygon region.
This returns the coordinates in pixels after all transformative properties have been applied.
A polygon is a sequence of points that form a closed shape. The first point does not need to be repeated as the last point. All the interior points and the edge are part of the region. The points are returned as pairs of (X, Y) coordinates.
Auto Trait Implementations§
impl Freeze for PolygonRegion
impl RefUnwindSafe for PolygonRegion
impl !Send for PolygonRegion
impl !Sync for PolygonRegion
impl Unpin for PolygonRegion
impl UnwindSafe for PolygonRegion
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more