Skip to content

ImwriteBMPCompressionFlags

Image codecsclassOpenCV 5.0.0
import { ImwriteBMPCompressionFlags } from '@banou/opencv-wasm'

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

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

Imwrite BMP specific values for IMWRITE_BMP_COMPRESSION parameter key.

Constructors and members

static IMWRITE_BMP_COMPRESSION_RGB

Use BI_RGB. OpenCV v4.12.0 or before supports to encode with this compression only.

IMWRITE_BMP_COMPRESSION_RGB: ImwriteBMPCompressionFlagsValue<0>,

static IMWRITE_BMP_COMPRESSION_BITFIELDS

Use BI_BITFIELDS. OpenCV v4.13.0 or later can support to encode with this compression. (only for 32 BPP images)

IMWRITE_BMP_COMPRESSION_BITFIELDS: ImwriteBMPCompressionFlagsValue<3>

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.