#[repr(C)]pub struct Line {
pub pt1: Point,
pub pt2: Point,
pub color: Scalar,
pub thick: i32,
pub lt: i32,
pub shift: i32,
}Expand description
This structure represents a line to draw.
Parameters match cv::line().
Fields§
§pt1: PointThe first point of the line segment
pt2: PointThe second point of the line segment
color: ScalarThe line color
thick: i32The thickness of line
lt: i32The Type of the line. See #LineTypes
shift: i32The number of fractional bits in the point coordinates
Implementations§
source§impl Line
impl Line
sourcepub fn new(
pt1_: Point,
pt2_: Point,
color_: Scalar,
thick_: i32,
lt_: i32,
shift_: i32
) -> Result<Line>
pub fn new( pt1_: Point, pt2_: Point, color_: Scalar, thick_: i32, lt_: i32, shift_: i32 ) -> Result<Line>
Line constructor
Parameters
- pt1_: The first point of the line segment
- pt2_: The second point of the line segment
- color_: The line color
- thick_: The thickness of line
- 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