Skip to main content

draw_marks

Function draw_marks 

Source
pub fn draw_marks(source: &RgbaImage, boxes: &[MarkBox]) -> RgbaImage
Expand description

Draw boxes on a copy of source and return the marked image.

Empty or off-image rectangles are skipped. Clipped rectangles still draw what fits; the borders and numbers stay legible at very small sizes.