gapi_wip_draw_Line
import { gapi_wip_draw_Line } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
Native object: release it with using or delete(). Factories can return null; check before calling methods.
This structure represents a line to draw.
Parameters match cv::line().
Constructors and members
static new
Line constructor
new(): gapi_wip_draw_Line;5 available overloads
new(pt1_: Point, pt2_: Point, color_: Scalar): gapi_wip_draw_Line;new(pt1_: Point, pt2_: Point, color_: Scalar, thick_: number): gapi_wip_draw_Line;new(pt1_: Point, pt2_: Point, color_: Scalar, thick_: number, lt_: number): gapi_wip_draw_Line;new(pt1_: Point, pt2_: Point, color_: Scalar, thick_: number, lt_: number, shift_: number): gapi_wip_draw_Line;new(): gapi_wip_draw_Line;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
The gapi_wip_draw_Line result.
clone
Create another handle to the same native object. This retains the object without copying its pixels or algorithm state; dispose both handles separately.
clone(): this;The this result.
pt1
The first point of the line segment
pt1: Point;pt2
The second point of the line segment
pt2: Point;color
gapi_wip_draw_Line.color: The line color
color: Scalar;thick
The thickness of line
thick: number;lt
The Type of the line. See #LineTypes
lt: number;shift
The number of fractional bits in the point coordinates
shift: number;These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.