Barcodes Upca
This will create an instance of Upca type barcode.
Syntax
| upcaBarcode = Barcodes.Upca ( ) |
| upcaBarcode = Barcodes.Upca ( Upca subType ) |
Parameters
| subType | Upca | Barcode sub type |
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 Upca type Barcode. |
Copy
Example
------- This program will scan UPCA barcode
--Millimeters mode selected
SetUnits(Units.Millimeters)
-- Laser Parameter settings
Laser.JumpSpeed = 2000
Laser.MarkSpeed = 1000
--Delay settings
Laser.JumpDelay = 100
Laser.MarkDelay = 100
--UPCA barcode (barcode subtype is Upcap2)
var = Barcodes.Upca(Upca.Upcap2)
--barcode height is 5.5
var.Height = 5.5
--barcode width is 14.4
var.Width = 14.4
--x position of the barcode
var.X = 0.5
--Y position of the barcode
var.Y = 0.5
--10 degree angle to the canvas
var.Angle = 10
-- Set print ratio as 2
var.PrintRatio = 2
--Apply Horizontal hatch pattern
var.HatchStyle = HatchStyle.Horizontal
--Barcode includes "0134567891455" text as the string
var.Text = "0134567891455"
--0.01 unit line gap
var.LineSpace = 0.01
--Mark Upcpa2 barcode
Image.Barcode(var)