GDrawPrim
import { GDrawPrim } 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.
An owned native drawing primitive used in typed graph arrays. Construct it from a supported drawing shape and release it after use.
Constructors and members
static fromText
Wrap the supplied text shape as an owned native drawing primitive for a graph array. The primitive retains its native value; dispose the returned handle.
fromText(_0: gapi_wip_draw_Text): GDrawPrim;_00 argument (gapi_wip_draw_Text).
The GDrawPrim result. Release returned native handles with using or delete(), including handles nested in results.
static fromRect
Wrap the supplied rect shape as an owned native drawing primitive for a graph array. The primitive retains its native value; dispose the returned handle.
fromRect(_0: gapi_wip_draw_Rect): GDrawPrim;_00 argument (gapi_wip_draw_Rect).
The GDrawPrim result. Release returned native handles with using or delete(), including handles nested in results.
static fromCircle
Wrap the supplied circle shape as an owned native drawing primitive for a graph array. The primitive retains its native value; dispose the returned handle.
fromCircle(_0: gapi_wip_draw_Circle): GDrawPrim;_00 argument (gapi_wip_draw_Circle).
The GDrawPrim result. Release returned native handles with using or delete(), including handles nested in results.
static fromLine
Wrap the supplied line shape as an owned native drawing primitive for a graph array. The primitive retains its native value; dispose the returned handle.
fromLine(_0: gapi_wip_draw_Line): GDrawPrim;_00 argument (gapi_wip_draw_Line).
The GDrawPrim result. Release returned native handles with using or delete(), including handles nested in results.
static fromMosaic
Wrap the supplied mosaic shape as an owned native drawing primitive for a graph array. The primitive retains its native value; dispose the returned handle.
fromMosaic(_0: gapi_wip_draw_Mosaic): GDrawPrim;_00 argument (gapi_wip_draw_Mosaic).
The GDrawPrim result. Release returned native handles with using or delete(), including handles nested in results.
static fromImage
Wrap the supplied image shape as an owned native drawing primitive for a graph array. The primitive retains its native value; dispose the returned handle.
fromImage(_0: gapi_wip_draw_Image): GDrawPrim;_00 argument (gapi_wip_draw_Image).
The GDrawPrim result. Release returned native handles with using or delete(), including handles nested in results.
static fromPoly
Wrap the supplied poly shape as an owned native drawing primitive for a graph array. The primitive retains its native value; dispose the returned handle.
fromPoly(_0: gapi_wip_draw_Poly): GDrawPrim;_00 argument (gapi_wip_draw_Poly).
The GDrawPrim result. Release returned native handles with using or delete(), including handles nested in results.
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.
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.