ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Bar Code functions
  • Size of image
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Generates the image of a bar code.
Example
// Generates the image of the bar code
MyBarCode is BarCode
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>: BarCode variable
Name of the BarCode 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 can correspond 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 can correspond 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: wd300barc.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 08/29/2022

Send a report | Local help