|
|
|
|
|
<Camera>.StartDecoding (Function) In french: <Caméra>.DémarreDécodage Starts decoding bar codes in a Camera control. You can specify the type of bar code to decode.
CAM_Camera1.StartDecoding(BC_QRCODE)
Syntax
<Camera control>.StartDecoding([<Bar code type>])
<Camera control>: Control name Name of the Camera control to be used. <Bar code type>: Optional Integer constant Type of bar codes that can be decoded: | | BC_AZTEC | Aztec bar code.
| BC_CODE128 | Code128 bar code.
| BC_CODE39 | Code39 bar code.
| BC_CODE93 | Code93 bar code.
| BC_DATAMATRIX | DATAMATRIX bar code.
| BC_EAN13 | EAN13 bar code.
| BC_EAN8 | EAN8 bar code.
| BC_INTER2OF5 | Interleaved 2 of 5 bar code.
| BC_PDF417 | PDF417 bar code.
| BC_QRCODE | QR Code bar code. | BC_UPCA | UPC-A bar code.
| BC_UPCE | UPC-E bar code.
| BC_ALL | All the types of bar codes supported by this function can be decoded. |
If this parameter is not specified: - the bar codes specified last time <Camera>.StartDecoding 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 <Camera>.StartDecoding 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, <Camera>.StopDecoding can be called in the initialization event of the Camera control.
- If <Camera>.StartDecoding 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 the same, the function has no effect.
- When a bar code is detected, the "Decode a bar code" event 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 CameraStartDecoding.
Component: wd300android.aar
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|