Skip to content

gapi_wip_draw_Poly

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

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

ARGUMENTSConstructor or factory
CLASSgapi_wip_draw_Poly
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 polygon to draw.

Constructors and members

static new

Mosaic constructor

new(): gapi_wip_draw_Poly;
5 available overloads
new(_0: PointVector, _1: Scalar): gapi_wip_draw_Poly;
new(points_: PointVector, color_: Scalar, thick_: number): gapi_wip_draw_Poly;
new(points_: PointVector, color_: Scalar, thick_: number, lt_: number): gapi_wip_draw_Poly;
new(points_: PointVector, color_: Scalar, thick_: number, lt_: number, shift_: number): gapi_wip_draw_Poly;
new(): gapi_wip_draw_Poly;
_0

0 argument (PointVector).

_1

1 argument (Scalar).

points_

Points to connect

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 coordinate

Returns

The gapi_wip_draw_Poly 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.

points

Points to connect

points: PointVector;

color

gapi_wip_draw_Poly.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 coordinate

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.