pub struct LineProfileAa { /* private fields */ }Expand description
Anti-aliased line width profile.
Port of C++ line_profile_aa. Builds a lookup table mapping perpendicular
distance from line center → coverage value, with configurable width and
gamma correction.
Implementations§
Source§impl LineProfileAa
impl LineProfileAa
pub fn new() -> Self
Sourcepub fn with_width(w: f64) -> Self
pub fn with_width(w: f64) -> Self
Create with a specific width.
pub fn min_width(&self) -> f64
pub fn smoother_width(&self) -> f64
pub fn subpixel_width(&self) -> i32
pub fn set_min_width(&mut self, w: f64)
pub fn set_smoother_width(&mut self, w: f64)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LineProfileAa
impl RefUnwindSafe for LineProfileAa
impl Send for LineProfileAa
impl Sync for LineProfileAa
impl Unpin for LineProfileAa
impl UnwindSafe for LineProfileAa
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