Skip to content

PutTextFlags

Image processingclassOpenCV 5.0.0
import { PutTextFlags } from '@banou/opencv-wasm'

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

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

Defines various put text flags

Constructors and members

static PUT_TEXT_ALIGN_LEFT

put the text to the right from the origin

PUT_TEXT_ALIGN_LEFT: PutTextFlagsValue<0>,

static PUT_TEXT_ALIGN_CENTER

center the text at the origin; not implemented yet

PUT_TEXT_ALIGN_CENTER: PutTextFlagsValue<1>,

static PUT_TEXT_ALIGN_RIGHT

put the text to the left of the origin

PUT_TEXT_ALIGN_RIGHT: PutTextFlagsValue<2>,

static PUT_TEXT_ALIGN_MASK

PutTextFlags.PUT_TEXT_ALIGN_MASK: alignment mask

PUT_TEXT_ALIGN_MASK: PutTextFlagsValue<3>,

static PUT_TEXT_ORIGIN_TL

PutTextFlags.PUT_TEXT_ORIGIN_TL: alignment mask

PUT_TEXT_ORIGIN_TL: PutTextFlagsValue<0>,

static PUT_TEXT_ORIGIN_BL

treat the target image as having bottom-left origin

PUT_TEXT_ORIGIN_BL: PutTextFlagsValue<32>,

static PUT_TEXT_WRAP

wrap text to the next line if it does not fit

PUT_TEXT_WRAP: PutTextFlagsValue<128>

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.