如何删除条形码图像下方的文字?

How to remove text below the barcode image?

我正在使用 ZXing.NET 生成条形码。我想生成一个没有下面文字的图像。我正在使用以下代码:

var content = "AAA";
var writer = new BarcodeWriter
{
    Format = BarcodeFormat.CODE_39,
    Options = new ZXing.Common.EncodingOptions
    {
        Height = 80,
        Width = 100,
        Margin = 1
    }
};
var bitmap = writer.Write(content);

EncodingOptions 具有 PureBarcode 作为布尔选项。将其设置为 true 应该省略文本。您可以勾选所有选项 in the source.