func X3.EN_IMAGE_GENERATE_CODE(Char CONTENT_IN, Tinyint TYPE_IN, Tinyint VISIBLE_CONTENT_IN, Char COLOR_IN, Char BACK_COLOR_IN, Integer HEIGHT_IN, Integer WIDTH_IN, Integer ORIENTATION_IN, Blbfile IMAGE_OUT) : Integer

Allows you to generate a barcode, QR Code, Datamatrix type image, etc...
Freemium limit: 20 calls per month and color and background unchangeable (blue on gray background)

  • CONTENT_IN Char Content to encode (123456789, REFART1, https://lvexpertisex3.com, ...)
  • TYPE_IN Tinyint Type of code to generate:
    • 0 = ISBN-10
    • 1 = EAN 13
    • 2 = EAN 8
    • 3 = EAN 5
    • 4 = EAN 2
    • 5 = UPC A
    • 6 = Code 39
    • 7 = Code 25
    • 8 = Codabar
    • 9 = Code 25 Industrial
    • 10 = Code 39 Extended
    • 11 = Code 128A
    • 12 = Code 128B
    • 13 = Code 128C
    • 14 = Code 128
    • 15 = EAN/UCC 128
    • 16 = EAN 99
    • 17 = UPC E
    • 18 = PostNet
    • 19 = Royal Mail
    • 20 = MSI
    • 21 = Code 93
    • 22 = Code 93 Extended
    • 23 = PZN7
    • 24 = Identcode
    • 25 = Leitcode
    • 26 = Code 39 Checksum
    • 27 = Code 39 Extended Checksum
    • 28 = EAN/UCC 128 AI
    • 29 = EAN 14
    • 30 = ITF-14
    • 31 = EAN-18/NVE
    • 32 = SSCC-18
    • 33 = Codabar Checksum
    • 34 = Code 25 Interleaved Checksum
    • 35 = Code 25 Industrial Checksum
    • 36 = PDF417
    • 37 = DataMatrix
    • 38 = ISBN-13
    • 39 = ISBN-13 Dual
    • 40 = ISSN
    • 41 = ISMN
    • 74 = GS1-Data Matrix
    • 108 = GS1-128
    • 109 = GTIN-8
    • 110 = GTIN-12
    • 111 = GTIN-13
    • 112 = GTIN-14
    • 113 = QR Code
    • 158 = PZN8
  • VISIBLE_CONTENT_IN Tinyint On some codes, possibility to display the content under the bars
  • COLOR_IN Char Color of the generated code in hexadecimal (Example: FF0000=red) Optional.
  • BACK_COLOR_IN Char Background color of the generated code in hexadecimal (Example: 00FF00=green) Optional.
  • HEIGHT_IN Integer Height of the image to generate in pixels. Optional.
  • WIDTH_IN Integer Width of the image to generate in pixels. Optional.
  • ORIENTATION_IN Integer Image rotation in degrees (0, 90, 180, 270)
  • IMAGE_OUT Blbfile Returned binary image file (png file)
Return Integer 0 or file size if OK
Example

The following example generates a QRCode leading to https://lvexpertisex3.com of 150*300 pixels tilted by 90° in red on blue
Once the code is generated, the png file is created on the server in the tmp directory of the folder
Local Blbfile IMG(10)
If func X3.EN_IMAGE_GENERATE_CODE(
& "https://lvexpertisex3.com",
& 113,
& 0,
& "FF0000",
& "0000FF",
& 150,
& 300,
& 90,
& IMG)
Openo filpath('tmp','monqr','png'),0 Using [ECR]
Putseq 1,IMG Using [ECR]
Openo Using [ECR]
Else
Infbox [V]GX3ERR
Endif