ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

  • 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.
New in version 28
Android This function is now available for Android applications.
Android Widget This function is now available in Android widget mode.
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: wd280barc.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Video BCToImage
https://youtu.be/keYb2pQ7zfU
//QRCode
MEU_qrcode is BarCode
MEU_qrcode..Content=EDT_CONTEUDO
MEU_qrcode..TypeBarCode=BC_QRCODE
IMG_QRCODE=BCToImage(MEU_qrcode,bcDefaultWidth,bcDefaultHeight)
amarildo
28 Jul. 2019
Video BCToImage
https://youtu.be/XI_kY4dqgMY
https://windevdesenvolvimento.blogspot.com/2019/07/dicas-2215-windev-webdev-mobile-24.html
// btn_Gera_imagen_codigo_Barra
meu_codigo_barra is BarCode
meu_codigo_barra..Content=EDT_CODIGO_BARRA
meu_codigo_barra..TypeBarCode=BC_EAN13
IMG_CODIGO_BARRA=BCToImage(meu_codigo_barra)
amarildo
24 Jul. 2019