Platforms to show: All Mac Windows Linux Cross-Platform

Back to ZxingBarcodeMBS module.

ZxingBarcodeMBS.BarcodeFormatFromString(text as String) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Barcode MBS Barcode Plugin 24.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Converts a barcode format to integer.
Example
Var f As Integer = ZxingBarcodeMBS.BarcodeFormatFromString("EAN-13")

Break // f = 512

ZxingBarcodeMBS.BarcodeFormatsFromString(text as String) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Barcode MBS Barcode Plugin 24.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Converts barcode formats to integer.
Example
Var f As Integer = ZxingBarcodeMBS.BarcodeFormatsFromString("EAN-8|EAN-13")

Break // f = 768

ZxingBarcodeMBS.BarcodeFormatsToString(value as Integer) as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Barcode MBS Barcode Plugin 24.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Converts a barcode formats value to text.
Example
Var s As String
Var f As Integer

f = ZXingReaderOptionsMBS.BarcodeFormatEAN13 Or ZXingReaderOptionsMBS.BarcodeFormatEAN8
s = ZxingBarcodeMBS.BarcodeFormatsToString(f)
MessageBox s // EAN-8|EAN-13

ZxingBarcodeMBS.BarcodeFormatToString(value as Integer) as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Barcode MBS Barcode Plugin 24.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Converts one barcode format value to text.
Example
Var s As String
Var f As Integer

f = ZXingReaderOptionsMBS.BarcodeFormatEAN13
s = ZxingBarcodeMBS.BarcodeFormatToString(f)
MessageBox s // EAN-13

Some examples using this method:

ZxingBarcodeMBS.CharacterSetFromString(text as String) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Barcode MBS Barcode Plugin 24.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Converts a text name for a character set to an integer value.
Example
Var f As Integer

f = ZxingBarcodeMBS.CharacterSetFromString("UTF-8")

Break // f = 29

ZxingBarcodeMBS.CharacterSetToString(value as Integer) as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Barcode MBS Barcode Plugin 24.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Converts a character set value to a text for display.
Example
Var s As String

s = ZxingBarcodeMBS.CharacterSetToString(ZXingReaderOptionsMBS.CharacterSetUTF8)

MessageBox s // UTF-8

ZxingBarcodeMBS.ReadBarcode(Pic as Picture, Options as ZXingReaderOptionsMBS = nil) as ZXingReaderResultMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Barcode MBS Barcode Plugin 24.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Read barcode from a picture.
Example
Var b As New BarcodeGeneratorMBS
b.Symbology = b.BarcodeQrcode
b.Encode "Hello Xojo Developer!"
Dim pic As Picture = b.Picture

Dim result As ZXingReaderResultMBS = ZxingBarcodeMBS.ReadBarcode(pic)

MessageBox result.Text

Options: optional ReaderOptions to parameterize / speed up detection.

Some examples using this method:

ZxingBarcodeMBS.ReadBarcodes(Pic as Picture, Options as ZXingReaderOptionsMBS = nil) as ZXingReaderResultMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Barcode MBS Barcode Plugin 24.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Read barcodes from a picture.

Options: optional ReaderOptions to parameterize / speed up detection.
Returns list of result objects, which can be empty.

The items on this page are in the following plugins: MBS Barcode Plugin.


The biggest plugin in space...