Skip to content
clpetersen edited this page Nov 5, 2014 · 1 revision

Scan a gd image structure for a data matrix barcode and return it as a string. Returns the empty string if no barcode was found.

Parameter Description
image Name of gd image structure

Example:

> 
(let* ((fh (gdFileOpen "test.png" "r"))
       (gd (gdImageCreateFromPng fh))
       (res (gd->dmtx gd)))
  (gdImageDestroy gd)
  (gdFileClose fh)
  res)
"this is a test"
>
Clone this wiki locally