Encodings Property
ClearImage COM Server
Encodings Property
See Also  Example  Send Feedback
CiPdf417 Object : Encodings Property

Description

Enable/disable barcode encoding analysis

Property type

Read-write property

Syntax

Visual Basic
Public Property Encodings As EBarcodeEncoding

Remarks

Set this property to enable automatic decoding/decompression of barcode value.  If compression is known set specific  EBarcodeEncoding value.   Alternatively OR all expected values.  Default value is ebeNone.

After barcode reading detected encoding/compression is set in %CiBarcode.Encoding:ClearImage~CiBarcode~Encoding% property.

Example


VB Example (Visual Basic)Copy Code
Public Function T_Pdf417_Decompress(ByRef Ci As CiServer, sFileName)
  Dim Bc As CiPdf417: Set Bc = Ci.CreatePdf417
  ' Open image from file
  Bc.Image.Open sFileName
  ' Configure barcode
  Bc.Algorithm = cibBestRecognition
  Bc.Directions = cibHorz
   ' Try to decompress barcode value created using Inlite or Adobe compression   
  Bc.Encodings =  ebeCompressionV1 Or ebeCompressionA1
  ' Read barcode
  Dim Barcode As CiBarcode
  Set Barcode = Bc.FirstBarcode
  ' Process barcode
  If (Not Barcode Is Nothing) Then
    '  Use detected compression:
    T_DisplayEncoding Barcode.Encoding
    T_DisplayBarcode Barcode
  End If
End Function

See Also

© 1992-2011. Inlite Research, Inc. All Rights Reserved.