Skip to content

GDrawPrim

Core and matricesclassOpenCV 5.0.0
import { GDrawPrim } from '@banou/opencv-wasm'

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

ARGUMENTSConstructor or factory
CLASSGDrawPrim
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.

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

0 argument (gapi_wip_draw_Text).

Returns

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

0 argument (gapi_wip_draw_Rect).

Returns

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

0 argument (gapi_wip_draw_Circle).

Returns

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

0 argument (gapi_wip_draw_Line).

Returns

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

0 argument (gapi_wip_draw_Mosaic).

Returns

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

0 argument (gapi_wip_draw_Image).

Returns

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

0 argument (gapi_wip_draw_Poly).

Returns

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

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.