#[repr(C)]pub struct Rect {
pub rect: Rect,
pub color: Scalar,
pub thick: i32,
pub lt: i32,
pub shift: i32,
}
Expand description
This structure represents a rectangle to draw.
Parameters match cv::rectangle().
Fields§
§rect: Rect
Coordinates of the rectangle
color: Scalar
The rectangle color or brightness (grayscale image)
thick: i32
The thickness of lines that make up the rectangle. Negative values, like #FILLED, mean that the function has to draw a filled rectangle
lt: i32
The type of the line. See #LineTypes
shift: i32
The number of fractional bits in the point coordinates
Implementations§
source§impl Rect
impl Rect
sourcepub fn new(
rect_: Rect,
color_: Scalar,
thick_: i32,
lt_: i32,
shift_: i32
) -> Result<Rect>
pub fn new(
rect_: Rect,
color_: Scalar,
thick_: i32,
lt_: i32,
shift_: i32
) -> Result<Rect>
Rect constructor
Parameters
- rect_: Coordinates of the rectangle
- color_: The bottom-left corner of the text string in the image
- thick_: The thickness of lines that make up the rectangle. Negative values, like #FILLED, mean that the function has to draw a filled rectangle
- lt_: The type of the line. See #LineTypes
- shift_: The number of fractional bits in the point coordinates
C++ default parameters
- thick_: 1
- lt_: 8
- shift_: 0