imageproc::drawing

Function draw_cubic_bezier_curve

Source
pub fn draw_cubic_bezier_curve<I>(
    image: &I,
    start: (f32, f32),
    end: (f32, f32),
    control_a: (f32, f32),
    control_b: (f32, f32),
    color: I::Pixel,
) -> Image<I::Pixel>
where I: GenericImage,
Expand description

Draws a cubic Bézier curve on a new copy of an image.

Draws as much of the curve as lies within image bounds.