Class Dmtx
- Namespace
- VisioForge.Core.LibDMTX
- Assembly
- VisioForge.Core.dll
High-level wrapper for decoding and encoding DataMatrix barcodes using libdmtx.
public static class DmtxInheritance
Inherited Members
Fields
DmtxUndefined
public const int DmtxUndefined = -1Field Value
Properties
LoadedDllPath
Gets the path where the LibDMTX DLL was loaded from.
public static string LoadedDllPath { get; }Property Value
Version
Gets the version of the underlying libdmtx library.
public static string Version { get; }Property Value
Methods
Decode(SKBitmap, DecodeOptions)
Decodes a bitmap returning all DataMatrix symbols found in the image.
public static DmtxDecoded[] Decode(SKBitmap b, DecodeOptions options)Parameters
bSKBitmap-
The bitmap to decode.
optionsDecodeOptions-
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
databyte[]-
The data to encode.
optionsEncodeOptions-
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.