LazBarcodes: what changed
Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.
| Old | New | Line | |
|---|---|---|---|
| 1 | 1 | ## General | |
| 2 | 2 | ||
| 3 | - | ||
| 4 | - | ||
| 5 | - | ||
| 6 | - | ||
| 3 | + |  | |
| 7 | 4 | ||
| 8 | 5 | ### About | |
| 9 | 6 | ||
| 10 | 7 | *LazBarcodes* is a set of controls to create 1D and 2D barcodes. The backend engine is a port of [Zint](http://sourceforge.net/projects/zint/) at sourceforge. Some units were heavily refactored to obtain a more Pascal-like code. | |
| 11 | 8 | ||
| 12 | 9 | The library supports the generation of 1D and 2D barcodes: | |
| 13 | 10 | ||
| 14 | 11 | - **1D barcodes**: Code-11, Code-128, Channel code, EAN-128, several 2-of-5 variants, several 3-of-9 variants, EAN, UPC, Plessey, MSI/Plessey, Telepen, medical/pharmaceutical codes (CodaBar, Code-32, Pharma one-track, Pharma two-track, PZN), postal codes (Australian post, Japanese post, Korean Post, Deutsche Post IdentCode and LeitCode, Dutch KIX, Planet, PostNet, Royal Mail RM4SCC) | |
| 15 | 12 | - **Stacked barcodes**: PDF417, compact PDF417, MicroPDF417 | |
| 16 | 13 | - **2D barcodes**: QR, MicroQR, Aztec, Aztec Rune, Data Matrix, Maxicode | |
| 17 | 14 | ||
| 18 | 15 | ### Author | |
| 19 | 16 | ||
| 20 | 17 | 2011 - Jose Mejuto | |
| 21 | 18 | ||
| 22 | 19 | ### License | |
| 23 | 20 | ||
| 24 | 21 | BSD 3 as it is being inherited from the zint source code. | |
| 25 | 22 | ||
| 26 | 23 | ### Dependencies / System Requirements | |
| 27 | 24 | ||
| 28 | 25 | - None | |
| 29 | 26 | ||
| 30 | 27 | ## Getting LazBarcodes | |
| 31 | 28 | ||
| 32 | 29 | The download contains the packages *lazbarcodes* and *lazbarcodes_runtimeonly*. The first one gives you visual components of the above barcodes and the second can be used just to access the ported zint code for advanced barcode generation. | |
| 33 | 30 | ||
| 34 | 31 | ### Development version | |
| 35 | 32 | ||
| 36 | 33 | The latest source code can be found on [Lazarus-CCR](https://sourceforge.net/p/lazarus-ccr/svn/HEAD/tree/components/lazbarcodes/). Use SVN to load the source files, or download the "Snapshot" by clicking on the corresponding button of the sourceforge site and unzip it to some directory. For installation go to "Package" \> "Load package file (*.lpk)", navigate to the folder with the downloaded sources and load the fole *lazbarcodes_runtimeonly.lpk*. Then load the package *lazbarcodes.lpk*. Click "Use" \> "Install", and confirm the question to rebuild the IDE. After some time the IDE restarts, and you find the barcodes in the "LazBarcodes" tab of the component palette. | |
| 37 | 34 | ||
| 38 | 35 | ### Release version | |
| 39 | 36 | ||
| 40 | 37 | Occasionally a release version is prepared and made available for easy installation by means of the [[Online Package Manager|Online-Package-Manager]] in the Lazarus IDE. Open "Package" \> "Online package manager", check the item "LazBarcodes" in the list and click "Install". Again, confirm the question to rebuild the IDE. When the IDE restarts after some time you find the barcodes in the "LazBarcodes" tab of the component palette. | |
| 41 | 38 | ||
| 42 | 39 | ### Change Log | |
| 43 | 40 | ||
| 44 | 41 | - v2.0.0: Added a lot of 1D barcodes | |
| 45 | 42 | - v1.0.3: Internally used units renamed to avoid naming conflict with CodeTyphon package PL_APE. | |
| 46 | 43 | - v1.0.2: Change of license from GPL to BSD | |
| 47 | 44 | - Initial development. | |
| 48 | 45 | ||
| 49 | 46 | ## Documentation | |
| 50 | 47 | ||
| 51 | 48 | ### General | |
| 52 | 49 | ||
| 53 | 50 | The components installed by the LazBarcodes package descent from TGraphicControl and thus inherit fundamental control properties such as `Width`, `Height`, `AutoSize`, etc. They share a variety of other properties and methods; some properties, however, are not published fwhen they are not appropriate for the current barcode type. | |
| 54 | 51 | ||
| 55 | 52 | #### Properties | |
| 56 | 53 | ||
| 57 | 54 | - `Text: TCaption` - Text to be encoded as a barcode. Note that, depending on the barcode type, there exist limitations on allowed text length and allowed characters. | |
| 58 | 55 | - `ShowHumanReadableText: Boolean` - Displays the encoded text underneath the barcode symbol. Note that the encoding algorithm may add check sum or additional characters to the input text. | |
| 59 | 56 | - `BarcodeType` - Some barcode components can be modified to create various symbologies by selecting the corresponding value in this (type-dependent) enumeration. | |
| 60 | 57 | - `Scale: Integer` - Horizontal scaling factor of the barcode determining the width of the smallest feature (bar or space) in pixels. `Scale=0` tries to select an internal scale value such that the barcode fills the control's width as much as possible. Note that this scaling factor applies to all bars and spaces and therefore, increasing `Scale` does not increase the barcode with gradually but by more or less large steps. | |
| 61 | 58 | - `SymbolHeight: Integer` - Similar to `Scale`, but refers now to the vertical direction. Again, `SymbolHeight=0` fills adjusts the internal symbol height to fill the height | |
| 62 | 59 | - `MinSymbolHeight: Integer` - Prevents the symbol to become too small. | |
| 63 | 60 | - `RecommendedSymbolSize: Boolean` - If `true`, overrides the `Scale` and `SymbolHeight` settings so that the size of the symbol is as close as possible to its specification. | |
| 64 | 61 | - `AutoSize: Boolean` - inherited standard property. When `true`, `Width` and `Height` are selected such that the current size of the barcode is enclosed. Note that `AutoSize=true` is ignored when `Scale=0` or `SymbolHeight=0`. | |
| 65 | 62 | - `Margin: Integer` - Amount of empty pixels added around the symbol | |
| 66 | 63 | - `WhitespaceWidth: Integer` - Amount of empty pixels added to the left and right of some symbologies to enhance readability of barcode scanners. | |
| 67 | 64 | - `BearerBarMode: TBearerBarMode = (bbmNone, bbmBearerBars, bbmBox)` - adds horizontal bars above and below the barcode (`bbmBearerBars`) or a box around the barcode (`bbmBox`). The thickness of the bars and the box border is given by the `Margin` multiplied by the currently used internal `Scale` parameter. | |
| 68 | 65 | - `ForegroundColor: TColor` - Color used to draw the bars | |
| 69 | 66 | - `BackgroundColor: TColor` - Color used to draw the background of the barcode (spaces, margin and text area). | |
| 70 | 67 | ||
| 71 | 68 | #### Methods | |
| 72 | 69 | ||
| 73 | 70 | - `CopyToClipboard` - Copies the barcode to the clipboard as a bitmap | |
| 74 | 71 | - `SaveToFile(const AFileName: String; AImageClass: TFPImageBitmapClass)` - Saves the barcode as a graphic image of the specified class to file. | |
| 75 | 72 | - `SaveToStream(const AStream: TStream; AImageClass: TFPImageBitmapClass)` - Saves the barcode as a graphic image of the specified class to a stream. | |
| 76 | 73 | - `SaveToEPSFile(const AFileName: String)` - Saves the barcode as EPS file | |
| 77 | 74 | - `SaveToEPSStream(const AStream: TStream)` - Saves the barcode in EPS format as stream. | |
| 78 | 75 | - `SaveToSVGFile(const AFileName: String)` - Saves the barcode in SVG format to file | |
| 79 | 76 | - `SaveToSVGStream(const AStream: TStream)` - Saves the barcode in SVG format to a stream | |
| 80 | 77 | - `ErrorString: String` - In case of an error, this read-only property contains a message why the `Text` could not be encoded correctly. | |
| 81 | 78 | ||
| 82 | 79 | ### Components | |
| 83 | 80 | ||
| 84 | 81 | #### 1D codes | |
| 85 | 82 | ||
| 86 | - | ||
| 87 | 83 | <thead> | |
| 88 | - | ||
| 89 | - | ||
| 90 | - | ||
| 91 | - | ||
| 92 | - | ||
| 93 | - | ||
| 94 | - | ||
| 95 | - | ||
| 96 | - | ||
| 84 | + | ||
| 97 | 85 | </thead> | |
| 98 | 86 | <tbody> | |
| 99 | - | ||
| 100 | - | ||
| 87 | + | ||
| 101 | 88 | <img src="tbarcode2of5.png" title="tbarcode2of5.png" alt="tbarcode2of5.png" /></td> | |
| 102 | - | ||
| 103 | - | ||
| 89 | + | ||
| 104 | 90 | Matrix 2-of-5</td> | |
| 105 | - | ||
| 91 | + | ||
| 106 | 92 | photo finishing<br /> | |
| 107 | 93 | airline ticket marking</td> | |
| 108 | - | ||
| 109 | - | ||
| 110 | - | ||
| 111 | - | ||
| 112 | - | ||
| 113 | - | ||
| 114 | - | ||
| 115 | - | ||
| 116 | - | ||
| 117 | - | ||
| 118 | - | ||
| 119 | - | ||
| 120 | - | ||
| 121 | - | ||
| 122 | - | ||
| 123 | - | ||
| 124 | - | ||
| 125 | - | ||
| 126 | - | ||
| 127 | - | ||
| 128 | - | ||
| 129 | - | ||
| 130 | - | ||
| 131 | - | ||
| 94 | + | ||
| 132 | 95 | photo developing envelopes<br /> | |
| 133 | 96 | warehouse sorting systems</td> | |
| 134 | - | ||
| 135 | - | ||
| 136 | - | ||
| 137 | - | ||
| 138 | - | ||
| 139 | - | ||
| 140 | - | ||
| 141 | - | ||
| 142 | - | ||
| 143 | - | ||
| 144 | - | ||
| 145 | - | ||
| 146 | - | ||
| 147 | - | ||
| 148 | - | ||
| 149 | - | ||
| 150 | - | ||
| 151 | - | ||
| 152 | - | ||
| 153 | - | ||
| 154 | - | ||
| 155 | - | ||
| 156 | - | ||
| 97 | + | ||
| 98 | + | cartons of some products</td> | |
| 99 | + | ||
| 157 | 100 | <img src="tbarcode3of9.png" title="tbarcode3of9.png" alt="tbarcode3of9.png" /></td> | |
| 158 | - | ||
| 159 | - | ||
| 160 | - | ||
| 101 | + | ||
| 102 | + | <code>bctLOGMARS</code></td> | |
| 103 | + | ||
| 161 | 104 | LOGMARS</td> | |
| 162 | - | ||
| 105 | + | ||
| 163 | 106 | industrial applications<br /> | |
| 164 | 107 | LOGMARS: different bar widths</td> | |
| 165 | - | ||
| 108 | + | ||
| 166 | 109 | <code>'–', '.', '$', '/', '+', '%'</code></td> | |
| 167 | - | ||
| 168 | - | ||
| 169 | - | ||
| 170 | - | ||
| 171 | - | ||
| 172 | - | ||
| 110 | + | ||
| 173 | 111 | (C39ext)</td> | |
| 174 | - | ||
| 112 | + | ||
| 175 | 113 | industrial applications</td> | |
| 176 | - | ||
| 177 | - | ||
| 178 | - | ||
| 179 | - | ||
| 180 | - | ||
| 181 | - | ||
| 182 | - | ||
| 183 | - | ||
| 184 | - | ||
| 185 | - | ||
| 186 | - | ||
| 187 | - | ||
| 188 | - | ||
| 189 | - | ||
| 114 | + | ||
| 190 | 115 | <img src="tbarcodec11.png" title="tbarcodec11.png" alt="tbarcodec11.png" /></td> | |
| 191 | - | ||
| 192 | - | ||
| 193 | - | ||
| 194 | - | ||
| 195 | - | ||
| 196 | - | ||
| 197 | - | ||
| 198 | - | ||
| 199 | - | ||
| 116 | + | ||
| 200 | 117 | <img src="tbarcodec128.png" title="tbarcodec128.png" alt="tbarcodec128.png" /></td> | |
| 201 | - | ||
| 202 | - | ||
| 203 | - | ||
| 204 | - | ||
| 205 | - | ||
| 206 | - | ||
| 207 | - | ||
| 208 | - | ||
| 209 | - | ||
| 210 | - | ||
| 118 | + | ||
| 211 | 119 | GS1-128</td> | |
| 212 | - | ||
| 213 | - | ||
| 214 | - | ||
| 120 | + | ||
| 215 | 121 | to be given in square parenthesis</td> | |
| 216 | - | ||
| 217 | - | ||
| 218 | - | ||
| 219 | - | ||
| 122 | + | ||
| 220 | 123 | <img src="tbarcodechannelcode.png" title="tbarcodechannelcode.png" alt="tbarcodechannelcode.png" /></td> | |
| 221 | - | ||
| 222 | - | ||
| 223 | - | ||
| 224 | - | ||
| 225 | - | ||
| 226 | - | ||
| 227 | - | ||
| 228 | - | ||
| 229 | - | ||
| 124 | + | ||
| 230 | 125 | <img src="tbarcodeean.png" title="tbarcodeean.png" alt="tbarcodeean.png" /></td> | |
| 231 | - | ||
| 232 | - | ||
| 233 | - | ||
| 234 | - | ||
| 126 | + | ||
| 235 | 127 | <code>'+'</code> for addon code</td> | |
| 236 | - | ||
| 237 | - | ||
| 238 | - | ||
| 239 | - | ||
| 240 | - | ||
| 241 | - | ||
| 242 | - | ||
| 243 | - | ||
| 244 | - | ||
| 245 | - | ||
| 246 | - | ||
| 247 | - | ||
| 248 | - | ||
| 249 | - | ||
| 250 | - | ||
| 251 | - | ||
| 128 | + | ||
| 252 | 129 | <code>'+'</code> for addon code</td> | |
| 253 | - | ||
| 254 | - | ||
| 255 | - | ||
| 256 | - | ||
| 257 | - | ||
| 258 | - | ||
| 259 | - | ||
| 260 | - | ||
| 261 | - | ||
| 262 | - | ||
| 263 | - | ||
| 264 | - | ||
| 265 | - | ||
| 266 | - | ||
| 267 | - | ||
| 268 | - | ||
| 130 | + | ||
| 269 | 131 | <code>'+'</code> for addon code</td> | |
| 270 | - | ||
| 132 | + | ||
| 271 | 133 | plus 2 check digits</td> | |
| 272 | - | ||
| 273 | - | ||
| 274 | - | ||
| 275 | - | ||
| 276 | - | ||
| 277 | - | ||
| 134 | + | ||
| 278 | 135 | (more compact than UPC/A)</td> | |
| 279 | - | ||
| 136 | + | ||
| 280 | 137 | <code>'+'</code> for addon code</td> | |
| 281 | - | ||
| 282 | - | ||
| 283 | - | ||
| 284 | - | ||
| 285 | - | ||
| 138 | + | ||
| 286 | 139 | <img src="tbarcodemedical.png" title="tbarcodemedical.png" alt="tbarcodemedical.png" /></td> | |
| 287 | - | ||
| 288 | - | ||
| 289 | - | ||
| 290 | - | ||
| 291 | - | ||
| 292 | - | ||
| 293 | - | ||
| 294 | - | ||
| 295 | - | ||
| 296 | - | ||
| 297 | - | ||
| 298 | - | ||
| 299 | - | ||
| 300 | - | ||
| 301 | - | ||
| 302 | - | ||
| 303 | - | ||
| 304 | - | ||
| 305 | - | ||
| 306 | - | ||
| 307 | - | ||
| 308 | - | ||
| 309 | - | ||
| 310 | - | ||
| 311 | - | ||
| 312 | - | ||
| 313 | - | ||
| 314 | - | ||
| 315 | - | ||
| 316 | - | ||
| 317 | - | ||
| 318 | - | ||
| 319 | - | ||
| 320 | - | ||
| 321 | - | ||
| 322 | - | ||
| 323 | - | ||
| 324 | - | ||
| 325 | - | ||
| 326 | - | ||
| 327 | - | ||
| 328 | - | ||
| 329 | - | ||
| 330 | - | ||
| 331 | - | ||
| 140 | + | ||
| 332 | 141 | <img src="tbarcodeplessey.png" title="tbarcodeplessey.png" alt="tbarcodeplessey.png" /></td> | |
| 333 | - | ||
| 334 | - | ||
| 335 | - | ||
| 336 | - | ||
| 337 | - | ||
| 338 | - | ||
| 339 | - | ||
| 340 | - | ||
| 341 | - | ||
| 342 | - | ||
| 343 | - | ||
| 344 | - | ||
| 142 | + | ||
| 345 | 143 | (see <code>CheckChar</code> property below)</td> | |
| 346 | - | ||
| 347 | - | ||
| 348 | - | ||
| 349 | - | ||
| 144 | + | ||
| 350 | 145 | <img src="tbarcodepostal.png" title="tbarcodepostal.png" alt="tbarcodepostal.png" /></td> | |
| 351 | - | ||
| 352 | - | ||
| 353 | - | ||
| 354 | - | ||
| 355 | - | ||
| 356 | - | ||
| 146 | + | ||
| 357 | 147 | <a href="http://fileformats.archiveteam.org/wiki/Australia_Post_standard_customer_barcode">http://fileformats.archiveteam.org/wiki/Australia_Post_standard_customer_barcode</a></td> | |
| 358 | - | ||
| 359 | - | ||
| 360 | - | ||
| 361 | - | ||
| 362 | - | ||
| 363 | - | ||
| 364 | - | ||
| 365 | - | ||
| 366 | - | ||
| 367 | - | ||
| 368 | - | ||
| 369 | - | ||
| 370 | - | ||
| 371 | - | ||
| 372 | - | ||
| 373 | - | ||
| 374 | - | ||
| 375 | - | ||
| 376 | - | ||
| 377 | - | ||
| 378 | - | ||
| 379 | - | ||
| 380 | - | ||
| 381 | - | ||
| 148 | + | ||
| 382 | 149 | <code>'A'</code>: Ascender<br /> | |
| 383 | 150 | <code>'F'</code>: Full height<br /> | |
| 384 | 151 | <code>'T'</code>: Tracker (short bar)</td> | |
| 385 | - | ||
| 386 | - | ||
| 387 | - | ||
| 388 | - | ||
| 389 | - | ||
| 390 | - | ||
| 391 | - | ||
| 392 | - | ||
| 393 | - | ||
| 394 | - | ||
| 395 | - | ||
| 396 | - | ||
| 397 | - | ||
| 398 | - | ||
| 399 | - | ||
| 400 | - | ||
| 401 | - | ||
| 402 | - | ||
| 403 | - | ||
| 404 | - | ||
| 405 | - | ||
| 406 | - | ||
| 407 | - | ||
| 408 | - | ||
| 409 | - | ||
| 410 | - | ||
| 411 | - | ||
| 412 | - | ||
| 413 | - | ||
| 414 | - | ||
| 415 | - | ||
| 416 | - | ||
| 417 | - | ||
| 418 | - | ||
| 419 | - | ||
| 420 | - | ||
| 421 | - | ||
| 422 | - | ||
| 423 | - | ||
| 424 | - | ||
| 425 | - | ||
| 426 | - | ||
| 427 | - | ||
| 428 | - | ||
| 429 | - | ||
| 430 | - | ||
| 431 | - | ||
| 432 | - | ||
| 433 | - | ||
| 434 | - | ||
| 435 | - | ||
| 436 | - | ||
| 437 | - | ||
| 438 | - | ||
| 439 | - | ||
| 440 | - | ||
| 441 | - | ||
| 442 | - | ||
| 443 | - | ||
| 444 | - | ||
| 445 | - | ||
| 446 | - | ||
| 447 | - | ||
| 448 | - | ||
| 449 | - | ||
| 450 | - | ||
| 451 | - | ||
| 452 | - | ||
| 453 | - | ||
| 152 | + | ||
| 454 | 153 | <img src="tbarcodetelepen.png" title="tbarcodetelepen.png" alt="tbarcodetelepen.png" /></td> | |
| 455 | - | ||
| 456 | - | ||
| 457 | - | ||
| 458 | - | ||
| 459 | - | ||
| 460 | - | ||
| 461 | - | ||
| 462 | - | ||
| 463 | - | ||
| 464 | - | ||
| 154 | + | ||
| 465 | 155 | 'X' must be at even character position.</td> | |
| 466 | - | ||
| 467 | - | ||
| 468 | - | ||
| 156 | + | ||
| 469 | 157 | </tbody> | |
| 470 | - | ||
| 471 | 158 | ||
| 472 | 159 | #### Stacked barcodes | |
| 473 | 160 | ||
| 474 | - | ||
| 475 | 161 | <thead> | |
| 476 | - | ||
| 477 | - | ||
| 478 | - | ||
| 479 | - | ||
| 480 | - | ||
| 481 | - | ||
| 482 | - | ||
| 483 | - | ||
| 484 | - | ||
| 162 | + | ||
| 485 | 163 | </thead> | |
| 486 | 164 | <tbody> | |
| 487 | - | ||
| 488 | - | ||
| 165 | + | ||
| 489 | 166 | <img src="tbarcodepdf417.png" title="tbarcodepdf417.png" alt="tbarcodepdf417.png" /></td> | |
| 490 | - | ||
| 491 | - | ||
| 492 | - | ||
| 493 | - | ||
| 494 | - | ||
| 495 | - | ||
| 496 | - | ||
| 497 | - | ||
| 498 | - | ||
| 499 | - | ||
| 167 | + | ||
| 500 | 168 | Compact PDF417</td> | |
| 501 | - | ||
| 502 | - | ||
| 503 | - | ||
| 504 | - | ||
| 505 | - | ||
| 506 | - | ||
| 507 | - | ||
| 508 | - | ||
| 509 | - | ||
| 169 | + | ||
| 510 | 170 | </tbody> | |
| 511 | - | ||
| 512 | 171 | ||
| 513 | 172 | #### 2D codes | |
| 514 | 173 | ||
| 515 | - | ||
| 516 | 174 | <thead> | |
| 517 | - | ||
| 518 | - | ||
| 519 | - | ||
| 520 | - | ||
| 521 | - | ||
| 522 | - | ||
| 523 | - | ||
| 524 | - | ||
| 175 | + | ||
| 525 | 176 | </thead> | |
| 526 | 177 | <tbody> | |
| 527 | - | ||
| 528 | - | ||
| 178 | + | ||
| 529 | 179 | <img src="tbarcodeaztec.png" title="tbarcodeaztec.png" alt="tbarcodeaztec.png" /></td> | |
| 530 | - | ||
| 531 | - | ||
| 532 | - | ||
| 533 | - | ||
| 534 | - | ||
| 535 | - | ||
| 536 | - | ||
| 537 | - | ||
| 180 | + | ||
| 538 | 181 | <img src="tbarcodeaztecrune.png" title="tbarcodeaztecrune.png" alt="tbarcodeaztecrune.png" /></td> | |
| 539 | - | ||
| 540 | - | ||
| 541 | - | ||
| 542 | - | ||
| 543 | - | ||
| 544 | - | ||
| 545 | - | ||
| 546 | - | ||
| 182 | + | ||
| 547 | 183 | <img src="tbarcodedatamatrix.png" title="tbarcodedatamatrix.png" alt="tbarcodedatamatrix.png" /></td> | |
| 548 | - | ||
| 549 | - | ||
| 550 | - | ||
| 551 | - | ||
| 552 | - | ||
| 553 | - | ||
| 554 | - | ||
| 555 | - | ||
| 184 | + | ||
| 556 | 185 | <img src="tbarcodeqr.png" title="tbarcodeqr.png" alt="tbarcodeqr.png" /></td> | |
| 557 | - | ||
| 558 | - | ||
| 559 | - | ||
| 560 | - | ||
| 561 | - | ||
| 562 | - | ||
| 563 | - | ||
| 564 | - | ||
| 186 | + | ||
| 565 | 187 | <img src="tbarcodemicroqr.png" title="tbarcodemicroqr.png" alt="tbarcodemicroqr.png" /></td> | |
| 566 | - | ||
| 567 | - | ||
| 568 | - | ||
| 569 | - | ||
| 570 | - | ||
| 571 | - | ||
| 572 | - | ||
| 573 | - | ||
| 188 | + | ||
| 574 | 189 | <img src="tbarcodemaxicode.png" title="tbarcodemaxicode.png" alt="tbarcodemaxicode.png" /></td> | |
| 575 | - | ||
| 576 | - | ||
| 577 | - | ||
| 578 | - | ||
| 579 | - | ||
| 580 | - | ||
| 190 | + | ||
| 581 | 191 | </tbody> | |
| 582 | - | ||
| 583 | 192 | ||
| 584 | 193 | #### Special properties of some components | |
| 585 | 194 | ||
| 586 | 195 | - `TBarcodePlessey` | |
| 587 | 196 | - `CheckChar: TPlesseyCheckChar` - determines the checksum digit(s) added to the MSI/Plessey symbol (used only when `BarcodeType = bctMSIPlessey`): | |
| 588 | 197 | - `pcOneMod10`: adds one check digit calculated by a *mod 10* algorithm | |
| 589 | 198 | - `pcTwoMod10`: adds two check digits, both calculated by a *mod 10* algorithm | |
| 590 | 199 | - `pcOneMod11`: adds one check digit calculated by a *mod 11* algorithm | |
| 591 | 200 | - `pcOneMod10Mod11`: add two check digits, the first one calculated by a *mod 10*, the second one calculated by a *mod 11* algorithm. | |
| 592 | 201 | - `TBarcodeQR` | |
| 593 | 202 | - `ECCLevel: TBarcodeQR_ECCLevel` - determines the level of error correction (used also by `TBarcodeMicroQR`): | |
| 594 | 203 | - `eBarcodeQR_ECCLevel_Auto`: selects one of the other options depending on data length | |
| 595 | 204 | - `eBarcodeQR_ECCLevel_L`: Error correction capacity: approx 20% of symbol, recovery capacity: approx 7% | |
| 596 | 205 | - `eBarcodeQR_ECCLevel_M`: Error correction capacity: approx 37% of symbol, recovery capacity: approx 15% | |
| 597 | 206 | - `eBarcodeQR_ECCLevel_Q`: Error correction capacity: approx 55% of symbol, recovery capacity: approx 25% | |
| 598 | 207 | - `eBarcodeQR_ECCLevel_H`: Error correction capacity: approx 65% of symbol, recovery capacity: approx 30% | |
| 599 | 208 | - `TBarcodeMaxicode` | |
| 600 | 209 | - `Mode: TBarcodeMaxicodeMode` - message mode | |
| 601 | 210 | - `mcmAuto`: tries to determine the mode from the type of the data | |
| 602 | 211 | - `mcmMode2`: In addition to the `Text` ("secondary message") also a 15-digit "primary message" must be provided in the property `Primary`. It consists of 9 numerical digits for the US-domestic post-code (property `PostCode: String`), 3 numeric digits for the country code (ISO 3166, property `CountryCode: Integer`) and 3 numeric digits for the service code (property `ServiceCode: Integer`). | |
| 603 | 212 | - `mcmMode3`: In addition to the `Text` ("secondary message") also a 15-digit "primary message" must be provided in the property `Primary`. It consists of 6 alphanumeric digits for the international post-code (property `PostCode: String`), 3 numeric digits for the country code (ISO 3166, property `CountryCode: Integer`) and 3 numeric digits for the service code (property `ServiceCode: Integer`). | |
| 604 | 213 | - `mcmMode4`: No `Primary` needed. | |
| 605 | 214 | - `mcmMode5`: No `Primary` needed. | |
| 606 | 215 | - `mcmMode6`: No `Primary` needed. | |
| 607 | 216 | - `Primary: String` - see `TBarcodeMaxicode.Mode` | |
| 608 | 217 | - `PostCode: String` - see `TBarcodeMaxicode.Mode` | |
| 609 | 218 | - `CountryCode: String` - see `TBarcodeMaxicode.Mode` | |
| 610 | 219 | - `ServiceCode: String` - see `TBarcodeMaxicode.Mode` | |
| 611 | 220 | ||
| 612 | 221 | ### Demo application | |
| 613 | 222 | ||
| 614 | 223 | A demo project is contained in the LazBarcodes installation. It allows to generate barcode from all barcode types supported. Please note that - since the requirements on length and characters changes from type to type - sometimes error messages are displayed; in this case, click on the "Sample text" button to use a predefined sample text for the selected barcode type. A screenshot is displayed at the top of this page. | |
| 615 | 224 | ||
| 616 | 225 | ## Final notes | |
| 617 | 226 | ||
| 618 | 227 | If you need the generation of another barcode and it is present in Zint, please ask for it in the [Lazarus forum](http://forum.lazarus.freepascal.org/) or mailing lists. | |
| 619 | 228 | ||
| 620 | 229 | --- | |
| 621 | 230 | *From the Free Pascal wiki, page "LazBarcodes", as it stood on 2023-09-17 after a change by Wp, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).* | |
| 622 | 231 | Category: Components | |
| 623 | 232 | Category: Lazarus-CCR |
