Table of Contents

Class Dmtx

Namespace
VisioForge.Core.LibDMTX
Assembly
VisioForge.Core.dll

High-level wrapper for decoding and encoding DataMatrix barcodes using libdmtx.

public static class Dmtx

Inheritance

Inherited Members

Fields

DmtxUndefined

public const int DmtxUndefined = -1

Field Value

int

Properties

LoadedDllPath

Gets the path where the LibDMTX DLL was loaded from.

public static string LoadedDllPath { get; }

Property Value

string

Version

Gets the version of the underlying libdmtx library.

public static string Version { get; }

Property Value

string

Methods

Decode(SKBitmap, DecodeOptions)

Decodes a bitmap returning all DataMatrix symbols found in the image.

public static DmtxDecoded[] Decode(SKBitmap b, DecodeOptions options)

Parameters

b SKBitmap

The bitmap to decode.

options DecodeOptions

The options used for decoding.

Returns

DmtxDecoded[]

An array of decoded symbols.

Encode(byte[], EncodeOptions)

Encodes data into a DataMatrix barcode.

public static DmtxEncoded Encode(byte[] data, EncodeOptions options)

Parameters

data byte[]

The data to encode.

options EncodeOptions

The options used for encoding.

Returns

DmtxEncoded

The encoded barcode as a bitmap.

IsLibraryAvailable()

Checks if the LibDMTX library is available and can be loaded.

public static bool IsLibraryAvailable()

Returns

bool

True if the library is available, false otherwise.