Function imageproc::drawing::draw_line_segment_mut
source · pub fn draw_line_segment_mut<I>(
image: &mut I,
start: (f32, f32),
end: (f32, f32),
color: I::Pixel
)where
I: GenericImage,
I::Pixel: 'static,
Expand description
Draws as much of the line segment between start and end as lies inside the image bounds. Uses Bresenham’s line drawing algorithm.