Function rectangle_def

Source
pub fn rectangle_def(
    img: &mut impl ToInputOutputArray,
    rec: Rect,
    color: Scalar,
) -> Result<()>
Expand description

@overload

use rec parameter as alternative specification of the drawn rectangle: r.tl() and r.br()-Point(1,1) are opposite corners

ยงNote

This alternative version of rectangle function uses the following default values for its arguments:

  • thickness: 1
  • line_type: LINE_8
  • shift: 0