encodeBarcode method
@brief Encode a string into a barcode
@param contents The string to encode. Owned pointer. Will be freed by native code.
@param width The width of the barcode in pixels.
@param height The height of the barcode in pixels.
@param format The format of the barcode
@param margin The margin of the barcode
@param eccLevel The error correction level of the barcode. Used for Aztec, PDF417, and QRCode only, 0-8
.
@return The barcode data.
Implementation
EncodeResult encodeBarcode(
ffi.Pointer<ffi.Char> contents,
int width,
int height,
int format,
int margin,
int eccLevel,
) {
return _encodeBarcode(
contents,
width,
height,
format,
margin,
eccLevel,
);
}