- width, height = gcx:barcode("code25m", x, y, module_width, barcode_height, text)
- width, height = gcx:barcodesize("code25m", x, y, module_width, barcode_height, text)
- width, height = gfx.barcodesize("code25m", x, y, module_width, barcode_height, text)
SYNOPSIS
DESCRIPTION
Draws a Two-out-of-Five barcode at the coordinates x, y.
This is very coarse numeric barcode and only of historic interest.
The checksum is added automatically.
The parameter module_width specifies the width of one Module unit. If the barcode is to be printed, the parameter should be at least 2, better 3.
The parameter barcode_height specifies the height of the full barcode in pixels.
RETURN VALUE
On success, returns the width and height of the resulting barcode in pixels. If the barcode cannot be drawn
due to invalid parameters, returns nil, nil.