encodeBarcode method

EncodeResult encodeBarcode(
  1. Pointer<Char> contents,
  2. int width,
  3. int height,
  4. int format,
  5. int margin,
  6. int eccLevel,
)

@brief Encode a string into a barcode @param contents The string to encode @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,
  );
}