Products Downloads


French version


 


This function is used to generate a bar code or QR code.


Context

  • Java client
  • Java server
  • Windows client
  • Windows server
  • Adelia Web Client
  • Adelia Cloud client
  • Event Adelia client


Parameters

ALPHA(n)

codeFormat

Format of the final pictogram: 

  • AZTEC (Default value)
  • BARCODE
  • CODE_128
  • CODE_39
  • CODE_93
  • DATA_MATRIX
  • EAN_13
  • EAN_8
  • ITF
  • PDF_417
  • QR_CODE
  • UPC_A
  • UPC_E

ALPHA(n)

content

Data to convert. The data must meet the prerequisites of the code to be generated (e.g. an EAN_13 must have 12 or 13 digits).

NUM_BIN_4

width

Width of the final image in pixels.

NUM_BIN_4

height

Height of the final image in pixels.

ALPHA(n)

imageFormat

Format of the final image.

  • GIF (except Windows)
  • JPEG
  • PNG (Default value)

NUM_BIN_4

colorCode

Integer value of the RGB color code for the foreground.

Example:

  • Black: -16777216
  • White: -1

(Except Windows. Only black and white are available)

NUM_BIN_4

backgroundColor

Integer value of the RGB color code for the background.

Example:

  • Black: -16777216
  • White: -1

(Except Windows. Only black and white are available)

ALPHA(n)

param

Additional parameters specific to the format:

name=value;name2=value2;...

  • ERROR_CORRECTION

  • CHARACTER_SET

  • DATA_MATRIX_SHAPE

  • DATA_MATRIX_COMPACT

  • MARGIN

  • PDF417_COMPACT

  • PDF417_COMPACTION

  • PDF417_DIMENSIONS

  • PDF417_AUTO_ECI

  • AZTEC_LAYERS

  • QR_VERSION

  • QR_MASK_PATTERN

  • QR_COMPACT

  • GS1_FORMAT

  • FORCE_CODE_SET

  • FORCE_C40

  • CODE128_COMPACT

Example: QR_VERSION=2;MARGIN=20
(except Windows)

IMAGE

image

Return image.

NUM_BIN_4

returnCode

Possible values:

0 Execution completed successfully

-1

Unknown error

-2

Number of false parameters

-3

Internal image generation error

-4

Options unavailable

-5

Empty content

-6

Additional parameter specific to the incorrect format

-7

Incorrect image format

-8

Incorrect bar code format



Example

ALPHA(30) CODE_FORMAT

ALPHA(500) VALUE

NUM_BIN_4 WIDTH

NUM_BIN_4 HEIGTH

ALPHA(30) FORMAT_IMAGE

NUM_BIN_4 COLOR_CODE

NUM_BIN_4 BG_COLOR

ALPHA(500) PARAM

IMAGE NEW_IMAGE

NUM_BIN_4 RETURN


VALUE = 'https://www.hardis-group.com/ '

WIDTH = 400

HEIGHT = 150

CODE_FORMAT = 'QR_CODE'

PARAM = 'CHARACTER_SET=UTF-8'

COLOR_CODE = -16777216

BG_COLOR = -1


CALL_DLL 'VATOOLBX.DLL' 'VaToolBxGenerateBarCode' FORMAT_CODE VALUE WIDTH HEIGTH IMAGE_FORMAT COLOR_CODE BG_COLOR PARAM NEW_IMAGE RETURN



Additional information

Basic color code: 
  1. Black: -16777216 (0xFF000000 in hexadecimal)
  2. White: -1 (0xFFFFFFFF in hexadecimal)
  3. Red: -65536 (0xFFFF0000 in hexadecimal)
  4. Green: -16711936 (0xFF00FF00 in hexadecimal)
  5. Blue: -16776961 (0xFF0000FF in hexadecimal)
  6. Yellow: -256 (0xFFFFFF00 in hexadecimal)
  7. Cyan: -16711681 (0xFF00FFFF in hexadecimal)
  8. Magenta: -65281 (0xFFFF00FF in hexadecimal)
  9. Grey: -8355712 (0xFF808080 in hexadecimal)
  10. Orange: -23296 (0xFFFFA500 in hexadecimal)


List of the VaToolBx functions by topic


↑ Top of page

  • Aucune étiquette