Demonstration - Databar Expanded

Generally used for coupons and variable weight items.
Can encode a fixed amount of data.
Data input must follow the GS1 Standard; SSC identifier must be registered.
Contains Expanded and Expanded Stacked versions.
* 30 character limit for this demo.

var font = new BCGFont(new Font("Arial", 18));
var colorBlack = new BCGColor(Color.Black);
var colorWhite = new BCGColor(Color.White);

// Barcode Part
var code = new BCGdatabarexpanded();
code.SetScale(2);
code.SetThickness(30);
code.SetForegroundColor(colorBlack);
code.SetBackgroundColor(colorWhite);
code.SetFont(font);
code.Parse("240HELLO");

// Drawing Part
var drawing = new BCGDrawing(code, colorWhite);

var memoryStream = new MemoryStream();
await drawing
    .FinishAsync(BCGDrawing.ImageFormat.Png, memoryStream);