imageproc::drawing

Function draw_hollow_rect

Source
pub fn draw_hollow_rect<I>(
    image: &I,
    rect: Rect,
    color: I::Pixel,
) -> Image<I::Pixel>
where I: GenericImage,
Expand description

Draws the outline of a rectangle on a new copy of an image.

Draws as much of the boundary of the rectangle as lies inside the image bounds.