Table of Contents

Class Code128Options

Namespace
Egami.Barcodes
Assembly
Egami.Barcodes.dll
public sealed record Code128Options : IEquatable<Code128Options>
Inheritance
Code128Options
Implements
Inherited Members

Examples

// The shortest mix of code sets A, B and C; the digits go in pairs.
Barcode code = Barcode.Code128("ORDER-1180042", new Code128Options { Height = 40 });
using Raster<Gray8> image = code.ToRaster(pixelsPerModule: 2);

Properties

Default

Gets the defaults.

public static Code128Options Default { get; }

Property Value

Code128Options

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.