Barcode39
Barcode39 ( left ; top ; width ; height ; text ; color ; checksumFlag )
| Argument | Type | Range | Default | Note |
|---|---|---|---|---|
| left | num | -inf..+inf | (required) | |
| top | num | -inf..+inf | (required) | |
| width | num | 0..inf | (required) | |
| height | num | 0..inf | (required) | |
| text | str | 0..100 | (required) | Max. 100 chars. |
| color | rgba | 0..255 | black | |
| checksumFlag | int | 0..1 | off |
Examples
Description
The Barcode39() function makes it possible to create Code 39 barcodes. It is also known as Alpha39, Code 3 of 9, Code 3/9, Type 39, USS Code 39, or USD-3.
Examples:
| | BARCODE_39_01 |
| 1 | /* Note: Using a high print resolution is recommended for all types of barcodes. */ |
| 2 | OpenDrawing(260;100;print) |
| 3 | Barcode39(20;20;220;60;"abc123") |
| 4 |
By activating the argument checksumFlag = on a checksum can be added, for example:
| | BARCODE_39_02 |
| 1 | /* Note: Using a high print resolution is recommended for all types of barcodes. */ |
| 2 | OpenDrawing(260;100;print) |
| 3 | /* Code 39 with checksum. */ |
| 4 | |
| 5 |
| | BARCODE_39_03 |
| 1 | /* Note: Using a high print resolution is recommended for all types of barcodes. */ |
| 2 | OpenDrawing(260;100;print) |
| 3 | /* Code 39 with checksum. */ |
| 4 | |
| 5 | AddText(130;95;"abc123";Verdana;12;plain;black;center) |
| 6 |
| | BARCODE_39_04 |
| 1 | /* Note: Using a high print resolution is recommended for all types of barcodes. */ |
| 2 | OpenDrawing(140;250;print) |
| 3 | OpenView(-60;80;260;100;-90) /* Requires xmCHART 5 or higher. */ |
| 4 | Barcode39(20;20;220;60;"abc123") |
| 5 | AddText(130;95;"abc123";Verdana;12;plain;black;center) |
| 6 | /* Background() // Uncomment while positioning the barcode. */ |
| 7 | |
| 8 | /* Background() // Uncomment while positioning the barcode. */ |
| 9 |