PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
New WINDEV, WEBDEV, WINDEV Mobile 24 feature!
  • Size of image
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Generates the image of a bar code.
Example
// Generates the image of the bar code
MyBarCode is BarCodes
MyBarCode..Content = "012345678901"
MyBarCode..TypeBarCode = BC_EAN13
ImageBarCode is Image = BCToImage(MyBarCode)
Syntax
<Result> = BCToImage(<Bar code> [, <Maximum width> [, <Maximum height> [, <Background color> [, <Bar code color>]]]])
<Result>: Image variable
Image variable corresponding to bar code.
<Bar code>: BarCodes variable
Name of the BarCodes variable that corresponds to the image to generate.
<Maximum width>: Optional integer
Maximum width of the image.
If the maximum width is not specified or corresponds to the constant bcDefaultWidth, the width will be the minimum width required to display the barcode.
If the specified width is less than the minimum width required to display the bar code, an error will be generated.
<Maximum height>: Optional integer
Maximum height of the image.
If the height is not specified or corresponds to the constant cbDefaultHeight, the height will be the minimum height required to display the bar code.
If the specified height is less than the minimum height required to display the bar code, an error will be generated.
<Background color>: Optional integer
Image background color. This color corresponds to:If the color is not specified or corresponds to the constant Transparent, the background will be transparent.
<Bar code color>: Optional integer
Bar code color. This color corresponds to:If the color of the bar code is not specified, the bar code will be black.
Remarks

Size of image

The size of the image will match the size of the bar code.. For example, for a QR Code, if the width specified is sufficient and the required height exceeds the width, the image will have equal dimensions (the height will be equal to the required width).
Component : wd240barc.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment