dmtx gd - part-cw/lambdanative GitHub Wiki

(dmtx->gd string)

Convert a string to an image structure with a data matrix barcode.

Parameter Description
string String to encode as a data matrix barcode

Example:

> 
(let* ((fh (gdFileOpen "test.png" "w"))
       (gd (dmtx->gd "this is a test")))
  (gdImagePng gd fh)
  (gdImageDestroy gd)
  (gdFileClose fh))
>