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

Draws a rectangle and its contents on a new copy of an image.

Draws as much of the rectangle and its contents as lies inside the image bounds.