ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Camera functions
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
Starts decoding bar codes in a Camera control. You have the ability to specify the type of bar codes to decode.
Example
// Starts decoding QRCode bar codes in the Camera control
CameraStartDecoding(CAM_Camera1, BC_QRCODE)
Syntax
CameraStartDecoding(<Camera control> [, <Type of bar code>])
<Camera control>: Control name
Name of the Camera control to be used.
<Type of bar code>: Optional Integer constant
Type of bar codes that can be decoded:
BC_AZTECAztec bar code.
iPhone/iPad This type of bar code is available from iOS 7.
BC_CODE128Code128 bar code.
iPhone/iPad This type of bar code is available from iOS 7.
BC_CODE39Code39 bar code.
iPhone/iPad This type of bar code is available from iOS 7.
BC_CODE93Code93 bar code.
iPhone/iPad This type of bar code is available from iOS 7.
BC_DATAMATRIXDATAMATRIX bar code.
iPhone/iPad Not available.
BC_EAN13EAN13 bar code.
iPhone/iPad This type of bar code is available from iOS 7.
BC_EAN8EAN8 bar code.
iPhone/iPad This type of bar code is available from iOS 7.
BC_INTER2OF5Interleaved 2 of 5 bar code.
iPhone/iPad This type of bar code is available from iOS 7.
BC_PDF417PDF417 bar code.
iPhone/iPad This type of bar code is available from iOS 7.
BC_QRCODEQR Code bar code.
BC_UPCAUPC-A bar code.
iPhone/iPad Not available.
BC_UPCEUPC-E bar code.
iPhone/iPad This type of bar code is available from iOS 7.
BC_ALLAll the types of bar codes supported by this function can be decoded.

If this parameter is not specified:
  • the bar codes specified last time CameraStartDecoding was called will be decoded.
  • the bar codes specified in the description window of Camera control will be decoded.
Remarks
  • The Camera control must have been configured to allow the decoding of bar codes (in the description window). Otherwise, the call to CameraStartDecoding will trigger a fatal error.
  • When the Camera control is configured to allow the decoding of bar codes (in the description window), the decoding automatically starts when the window is opened. To prevent this behavior, CameraStopDecoding can be called in the event "Initializing" of the Camera control.
  • If CameraStartDecoding is called when a decoding process is already in progress in the Camera control, the decoding process is stopped and then restarted to take into account the new type of bar code to decode. If the type of bar code is identical, the function has no effect.
  • When a bar code is detected, the event "Decoding a bar code" of the Camera control is called with a BarCode variable as parameter, which corresponds to the detected bar code. If this event returns True, bar code decoding will be automatically stopped.
  • This function is equivalent to VideoStartDecoding.
Component: wd290android.jar
Minimum version required
  • Version 22
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help