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(30) |
codeFormat |
Format of the final pictogram:
|
||||||||||||||||||
ALPHA(500) |
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_2 |
width |
Width of the final image in pixels. |
||||||||||||||||||
NUM_BIN_2 |
height |
Height of the final image in pixels. |
||||||||||||||||||
ALPHA(30) |
imageFormat |
Format of the final image.
|
||||||||||||||||||
NUM_BIN_4 |
colorCode |
Integer value of the RGB color code for the foreground. Example:
(Except Windows. Only black and white are available) |
||||||||||||||||||
NUM_BIN_4 |
backgroundColor |
Integer value of the RGB color code for the background. Example:
(Except Windows. Only black and white are available) |
||||||||||||||||||
ALPHA(500) |
param |
Additional parameters specific to the format: name=value;name2=value2;...
Example: QR_VERSION=2;MARGIN=20 |
||||||||||||||||||
IMAGE |
image |
Return image. |
||||||||||||||||||
NUM_BIN_4 |
returnCode |
Possible values:
|
Example
ALPHA(30) CODE_FORMAT
ALPHA(500) VALUE
NUM_BIN_2 WIDTH
NUM_BIN_2 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:
- Black: -16777216 (0xFF000000 in hexadecimal)
- White: -1 (0xFFFFFFFF in hexadecimal)
- Red: -65536 (0xFFFF0000 in hexadecimal)
- Green: -16711936 (0xFF00FF00 in hexadecimal)
- Blue: -16776961 (0xFF0000FF in hexadecimal)
- Yellow: -256 (0xFFFFFF00 in hexadecimal)
- Cyan: -16711681 (0xFF00FFFF in hexadecimal)
- Magenta: -65281 (0xFFFF00FF in hexadecimal)
- Grey: -8355712 (0xFF808080 in hexadecimal)
- Orange: -23296 (0xFFFFA500 in hexadecimal)
List of the VaToolBx functions by topic