Class ItfOptions
How Itf(string, ItfOptions?) and Itf14(string, ItfOptions?) make a symbol.
public sealed record ItfOptions : IEquatable<ItfOptions>
- Inheritance
-
ItfOptions
- Implements
- Inherited Members
Examples
// A GTIN-14 on a carton: the check digit is added, and bearer bars frame the symbol.
Barcode carton = Barcode.Itf14("1540014128876");
using Raster<Gray8> image = carton.ToRaster(pixelsPerModule: 3);
// Plain Interleaved 2 of 5 with a 2:1 wide ratio and no bearers.
Barcode itf = Barcode.Itf("0123456789", new ItfOptions { WideRatio = 2 });
Properties
BearerBars
Gets a value indicating whether bearer bars frame the symbol and its quiet zone, 5 modules thick, so a reader cannot mistake part of the symbol for a shorter one; or null, the default, for bearer bars on ITF-14 only.
public bool? BearerBars { get; init; }
Property Value
- bool?
Default
Gets the defaults.
public static ItfOptions Default { get; }
Property Value
Height
Gets the height of the bars in modules, or null, the default, for 50. It sets the height when the barcode is drawn at a module size; drawn into a rectangle, the bars fill it.
public int? Height { get; init; }
Property Value
- int?
Exceptions
- ArgumentOutOfRangeException
The value is not positive.
WideRatio
Gets the width of a wide bar or space in narrow ones, 2 or 3, or null, the default, for 3.
public int? WideRatio { get; init; }
Property Value
- int?
Exceptions
- ArgumentOutOfRangeException
The value is not 2 or 3.