|class||Barcode||MBS Barcode Plugin||21.3||✅ Yes||✅ Yes||✅ Yes||✅ Yes||All|
// get some picture
Dim p As Picture = Picture.Open(file)
If p <> Nil Then
// scan it
Dim symbols() As ZBarMBS = ZBarMBS.Scan(p)
// show results
For Each symbol As ZBarMBS In symbols
MsgBox symbol.Name+": "+symbol.Text
We can use the zbar library to scan pictures for barcodes in Xojo:
ZBar is an open source software suite for reading bar codes from various sources, such as video streams, image files and raw intensity sensors. It supports many popular symbologies (types of bar codes) including EAN-13/UPC-A, UPC-E, EAN-8, Code 128, Code 39, Interleaved 2 of 5 and QR Code.
ZBar is licensed under the GNU LGPL 2.1 to enable development of both open source and commercial projects.
Since the library is under LGPL license, we can't embed it within the plugin and you need to provide a DLL/dylib/so file to the plugin to load library
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.
- 12 properties
- property BoundsBottom as Integer
- property BoundsLeft as Integer
- property BoundsRight as Integer
- property BoundsTop as Integer
- property Data as MemoryBlock
- property HasComponents as Boolean
- property Name as String
- property Picture as Picture
- property Quality as Integer
- property Text as String
- property Type as Integer
- property XML as String
- shared property Version as String
- 2 methods
- 6 shared methods
- shared method LibraryLoaded as Boolean
- shared method LibraryLoadError as Integer
- shared method LibraryLoadErrorMessage as String
- shared method LoadLibrary(file as folderitem) as boolean
- shared method LoadLibrary(path as string) as boolean
- shared method Scan(pic as Picture, AllowedTypes as Integer = 0) as ZBarMBS()
- 17 constants
add-on flag mask
2-digit add-on flag
5-digit add-on flag
Interleaved 2 of 5.
ISBN-10 (from EAN-13).
ISBN-13 (from EAN-13).
no symbol decoded.
mask for base symbol type
This class has no sub classes.
Some examples using this class:
- MonkeyBread Software Releases the MBS Xojo Plugins in version 21.3
- MBS Xojo Plugins, version 21.3pr5
- Using zbar library with Xojo
- MBS Xojo Plugins, version 21.3pr2
- MBS Xojo Plugins, version 21.3pr1
Xojo Developer Magazine
The items on this page are in the following plugins: MBS Barcode Plugin.
MBS Xojo Plugins