Demonstration - DataMatrix

Capable of being read by most mobile phones.
Generally used to label and track small items for inventory.
Has a very low error rate with internal error correction.
Barcode can be square or rectangular in shape.
* 30 character limit for this demo.

var colorFront = new BCGColor(Color.Black);
var colorBack = new BCGColor(Color.White);

// Barcode Part
var code = new BCGdatamatrix();
code.SetScale(2);
code.SetForegroundColor(colorFront);
code.SetBackgroundColor(colorBack);
code.Parse("Datamatrix");

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

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