Platforms to show: All Mac Windows Linux Cross-Platform

Back to BarcodeGeneratorMBS class.

BarcodeGeneratorMBS.BackColor as Color

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Barcode MBS Barcode Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The background color.
Example

Dim z As New BarcodeGeneratorMBS

z.BackColor = &cFFCCFF

By default white.
Please set before Encode to take effect while encoding barcode.
(Read and Write property)

BarcodeGeneratorMBS.BitmapByteLength as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Barcode MBS Barcode Plugin 16.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The byte length of a bitmap.

(Read only property)

BarcodeGeneratorMBS.BitmapHeight as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Barcode MBS Barcode Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Height of stored bitmap image (in pixels).

(Read only property)

BarcodeGeneratorMBS.BitmapWidth as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Barcode MBS Barcode Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Width of stored bitmap image (in pixels).

(Read only property)

BarcodeGeneratorMBS.BorderWidth as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Barcode MBS Barcode Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Border width.
Example

Dim z As New BarcodeGeneratorMBS

z.ForeColor = &c8888FF
z.BackColor = &c000000

// add 20 pixel border around
z.BorderWidth = 20
z.OutputOptions = z.OutputOptionBox

Default 0.
Please set before Encode to take effect while encoding barcode.
Only used if OutputOptions includes flag OutputOptionBox or flag OutputOptionBind.
(Read and Write property)

BarcodeGeneratorMBS.DotSize as Single

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Barcode MBS Barcode Plugin 16.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The dot size.

(Read and Write property)

BarcodeGeneratorMBS.ECI as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Barcode MBS Barcode Plugin 16.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
ECI field.

(Read and Write property)

BarcodeGeneratorMBS.ErrorText as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Barcode MBS Barcode Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Error message in the event that an error occurred.

(Read only property)

BarcodeGeneratorMBS.FontSize as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Barcode MBS Barcode Plugin 19.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The font size.

(Read and Write property)

BarcodeGeneratorMBS.ForeColor as Color

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Barcode MBS Barcode Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The foreground color.
Example

Dim z As New BarcodeGeneratorMBS

z.ForeColor = &c88FFFF
z.BackColor = &c000000

By default black.
Please set before Encode to take effect while encoding barcode.
(Read and Write property)

BarcodeGeneratorMBS.GuardDescent as Single

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Barcode MBS Barcode Plugin 23.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Height in X-dimensions that EAN/UPC guard bars descend.

Default is 5.
(Read and Write property)

BarcodeGeneratorMBS.Height as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Barcode MBS Barcode Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Symbol height.

Default 50.
(Read and Write property)

BarcodeGeneratorMBS.InputMode as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Barcode MBS Barcode Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Set encoding of input data.

Default binary mode.
Please set before Encode to take effect while encoding barcode.
(Read and Write property)

BarcodeGeneratorMBS.LastError as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Barcode MBS Barcode Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The last error code.
Example

Dim z As New BarcodeGeneratorMBS

// do something and then check error:

dim e as integer = z.LastError
dim error as string

Select case e
case z.ErrorTooLong
error = "ErrorTooLong"
case z.ErrorInvalidData
error = "ErrorInvalidData"
case z.ErrorInvalidCheck
error = "ErrorInvalidCheck"
case z.ErrorInvalidOption
error = "ErrorInvalidOption"
case z.ErrorEncodingProblem
error = "ErrorEncodingProblem"
case z.ErrorFileAccess
error = "ErrorFileAccess"
case z.ErrorMemory
error = "ErrorMemory"
end Select

(Read and Write property)

BarcodeGeneratorMBS.Option1 as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Barcode MBS Barcode Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Symbology specific options.

Please set before Encode to take effect while encoding barcode.
See zint_manual_242.pdf coming with examples for details.

For QRCode:
The ECC Level with values from 1 = low, 2 = middle, 3 = better, 4 high. Default is low.

For MaxiCode:
The mode for the maxi code.

For PDF 417:
Optional a number between 0 and 8 where the number of codewords used for check information is determined by 2^(value + 1).
(Read and Write property)

BarcodeGeneratorMBS.Option2 as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Barcode MBS Barcode Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Symbology specific options.

Please set before Encode to take effect while encoding barcode.
See zint_manual_242.pdf coming with examples for details.

For QRCode:
Version code from 1 to 40. Default is 0 to auto select.

For Data Matrix:
Size from 1 to 30. 0 is auto. See table in zint manual pdf.

For Code 39:
You can set Option2 to 1 to add module 43 checksum.

For PDF 417:
The number of columns between 1 and 30.
(Read and Write property)

BarcodeGeneratorMBS.Option3 as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Barcode MBS Barcode Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Symbology specific options.

Please set before Encode to take effect while encoding barcode.
See zint_manual_242.pdf coming with examples for details.
(Read and Write property)

BarcodeGeneratorMBS.OutputOptions as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Barcode MBS Barcode Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Binding or box parameters.
Example

dim b as new BarcodeGeneratorMBS
b.OutputOptions = b.OutputOptionBoldText

Use OutputOptionBind, OutputOptionBox or OutputOptionNone.
Please set before Encode to take effect while encoding barcode.
(Read and Write property)

BarcodeGeneratorMBS.Picture as Picture

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Barcode MBS Barcode Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The barcode picture.
Example
Dim z As New BarcodeGeneratorMBS

z.Symbology = BarcodeGeneratorMBS.BarcodeQrcode
z.Encode "MBS Plugin"

Dim pic As Picture = z.picture
If z.LastError <> 0 Then
MessageBox "LastError: "+Str(z.LastError)
Else
window1.Backdrop = pic
End If

(Read and Write property)

BarcodeGeneratorMBS.Rows as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Barcode MBS Barcode Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Number of rows used by the symbol or, if using barcode stacking, the row to be used by the next symbol.

(Read only property)

BarcodeGeneratorMBS.Scale as Single

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Barcode MBS Barcode Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Scale factor for adjusting size of image.
Example
dim b as new BarcodeGeneratorMBS
b.Symbology = b.BarcodeQrcode
b.Scale = 4
b.BorderWidth = 4
b.Encode "Hello Xojo Developer!"
Backdrop = b.Picture

Default is 1.0
Please set before Encode to take effect while encoding barcode.
(Read and Write property)

BarcodeGeneratorMBS.ShowText as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Barcode MBS Barcode Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Whether to show the text below the barcode.

Please set before Encode to take effect while encoding barcode.
(Read and Write property)

BarcodeGeneratorMBS.Symbology as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Barcode MBS Barcode Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Symbology to use.
Example

Dim z As New BarcodeGeneratorMBS

z.Symbology = BarcodeGeneratorMBS.BarcodeEanx
z.Encode "54321"

Dim pic As Picture = z.picture
Dim e As Integer = z.LastError
break

e.g. BarcodeEANX.
Please set before Encode to take effect while encoding barcode.
(Read and Write property)

BarcodeGeneratorMBS.Text as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Barcode MBS Barcode Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Human readable text, which usually consists of the input data plus one or more check digits.
Example

Dim z As New BarcodeGeneratorMBS

z.Symbology = BarcodeGeneratorMBS.BarcodeEanx
z.Encode "54321"

Dim pic As Picture = z.picture
Dim e As Integer = z.LastError
break

Uses UTF-8 formatting.
(Read only property)

BarcodeGeneratorMBS.Vector as ZintVectorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Barcode MBS Barcode Plugin 20.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The vector information.

You can check this classes and draw the barcode yourself.
For Example with DynaPDF as vector graphics.

Only available after you called Encode method.
(Read and Write property)

BarcodeGeneratorMBS.WarnLevel as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Barcode MBS Barcode Plugin 23.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The warning level.

Affects error/warning value returned by Zint API.
(Read and Write property)

BarcodeGeneratorMBS.WhitespaceHeight as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Barcode MBS Barcode Plugin 23.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Height in X-dimensions of whitespace above & below the barcode.
Example

Dim z As New BarcodeGeneratorMBS

z.WhitespaceHeight = 20
z.WhitespaceWidth = 20

(Read and Write property)

BarcodeGeneratorMBS.WhitespaceWidth as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Barcode MBS Barcode Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The width of the whitespace.
Example

Dim z As New BarcodeGeneratorMBS

z.WhitespaceHeight = 20
z.WhitespaceWidth = 20

Please set before Encode to take effect while encoding barcode.
(Read and Write property)

BarcodeGeneratorMBS.Width as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Barcode MBS Barcode Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Width of the generated symbol.

(Read only property)

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


The biggest plugin in space...