Barcodes Codabar
Creates an instance of Codabar barcode.
Syntax
Barcodes.Codabar ( ) |
Properties
Angle | float | Angle at which the barcode is placed along the positive X-axis. This can have +/- values in current angle unit. |
Elevation | float | Gets or sets the z coordinate of the starting position. |
HatchStyle | HatchStyle | The hatch pattern used to fill the barcode. |
Height | float | The height of the Barcode. |
HumanReadableMarkingOrder | MarkingOrder | Gets or sets the order in which the hatch and the outline of the human readable text will be marked. |
HumanReadableText | HumanReadableText | Get or Set human readable text settings |
Invert | bool | If true, Inverts the barcode. |
LineSpace | float | Gets or sets the hatching line gap of the barcode. |
MarkingOrder | MarkingOrder | Gets or sets the order in which the hatch and the outline will be marked. |
PrintRatio | float | Gets or sets the print ration (width to narrow ratio) of the barcode. |
QuietZone | bool | Gets or sets whether the quite zone of the barcode is enabled or disabled. |
ShowHumanReadableText | bool | Gets or sets whether the human readable text is visible or not |
Text | string | Alphanumeric characters, which will get encoded into the Barcode. |
Width | float | Gets or sets the width of the Barcode. |
X | float | Gets or sets the X coordinate of the starting position. |
Y | float | Gets or sets the Y coordinate of the starting position. |
Return Values
Returns an instance of Codabar type Barcode. |
Copy
Example
--This program will scan a Codabar barcode
-- Set the units as Millimeters
SetUnits(Units.Millimeters)
-- Laser Parameter settings
Laser.JumpSpeed = 2000
Laser.MarkSpeed = 1000
--Delay settings
Laser.JumpDelay = 100
Laser.MarkDelay = 100
--Assign Codabar barcode to variable "var"
var = Barcodes.Codabar()
-- Barcode height is 14.5
var.Height = 14.5
-- X coordinate is 0.5
var.X = 0.5
-- Y coordinate is 0.5
var.Y = 0.5
--10 degree angle to the canvas
var.Angle = 10
--Set print ratio as 3
var.PrintRatio = 3
--Apply VerticalSerpentine hatch pattern
var.HatchStyle = HatchStyle.VerticalSerpentine
--Barcode includes "C125345" text as the string
var.Text = "C125345"
--0.01 unit hatch line gap
var.LineSpace = 0.01
--Mark Codabar barcode
Image.Barcode(var)