Skip to content

gapi_wip_draw_Line

gapiclassOpenCV 5.0.0
import { gapi_wip_draw_Line } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTSConstructor or factory
CLASSgapi_wip_draw_Line
RETURN TYPEOwned native handle
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

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

Returns

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;
Returns

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.