pub struct Curve {
pub x0: f64,
pub top: f64,
pub x1: f64,
pub bottom: f64,
pub pts: Vec<(f64, f64)>,
pub line_width: f64,
pub stroke: bool,
pub fill: bool,
pub stroke_color: Color,
pub fill_color: Color,
}Expand description
A curve extracted from a painted path (cubic Bezier segment).
Coordinates use pdfplumber’s top-left origin system.
Fields§
§x0: f64Bounding box left x.
top: f64Bounding box top y (distance from top of page).
x1: f64Bounding box right x.
bottom: f64Bounding box bottom y (distance from top of page).
pts: Vec<(f64, f64)>All points in top-left origin: [start, cp1, cp2, end].
line_width: f64Line width (stroke width from graphics state).
stroke: boolWhether the curve is stroked.
fill: boolWhether the curve is filled.
stroke_color: ColorStroking color.
fill_color: ColorFill color.
Trait Implementations§
impl StructuralPartialEq for Curve
Auto Trait Implementations§
impl Freeze for Curve
impl RefUnwindSafe for Curve
impl Send for Curve
impl Sync for Curve
impl Unpin for Curve
impl UnsafeUnpin for Curve
impl UnwindSafe for Curve
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