--- title: "create barcode()" slug: "basic-create-barcode" updated: 2025-11-13T09:16:47Z published: 2025-11-14T02:46:22Z canonical: "docs.lobstersoftware.com/basic-create-barcode" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # create barcode() Diese Funktion erstellt ein Base64-kodiertes Barcode-Bild aus den angegebenen Daten **a** und dem Format **b**. ## Parameter | Parameter | Beschreibung | | --- | --- | | a | Text für den Barcode. | | b | Format des Barcodes. **Hinweis:** Verwenden Sie zur Auswahl eines Wertes die drei Punkte. | | c | (optional) Breite in Pixel. Default: *300*. | | d | (optional) Höhe in Pixel. Default: *300*. | | e | (optional) [Zusätzliche Parameter](https://zxing.github.io/zxing/apidocs/com/google/zxing/EncodeHintType.html), separiert durch Semikolon. **Beispiel:** *CHARACRTER_SET=UTF-8;MARGIN=10* | ## Beispiel | Parameter a | Parameter b | Parameter c | Parameter d | Parameter e | | --- | --- | --- | --- | --- | | My text | QR_CODE | 300 | 300 | | ```Ergebnis data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAASwAAAEsAQAAAABRBrPYAAABNUlEQVR4Xu3YsY6DMBAE0E3FZ/hT8afyCSldxWFmHbhbEt2ddCzNTIHM8lyNwFGs/yZ3i5O3EQsRCx ELEQsRCxEL+RtrNlL6w+bFbr2OwU0sj/ldr2BmE1dfHoglsYpiallr87KwsiJ2CeMrw7LELmQUWIldwBgy37WtELEUZiOFApcxEMtje9o4Pr5HLExPYY09vRqzaf09Vfr2BonlsrnjEMek um2HN0vsNLbPsfKH2Hr8cImdx9gTLts3i7tmX4vlMM4NRzcfNh7i64ZlEktlIxRu0Z1YIltHntJY0QPrV2NiWczvxsmx2NbTeCCWxCrbKawNZfkfT4eyxDJYR2O8sDY2JpbNUJ YLv/1Qltg5jOF8b+xNWWInMhtxhgu6Y2NiWeyniIWIhYiFiIWIhYiF/DN7AowdQFSeCkjoAAAAAElFTkSuQmCC ```