gapi_wip_draw_Poly
import { gapi_wip_draw_Poly } 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 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;_00 argument (PointVector).
_11 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
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;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.