Skip to content

EAN13 formatting of the text below the barcode. #452

Answered by micjahn
Woetoo asked this question in Q&A
Discussion options

You must be logged in to vote

You can try the following:

var writer = new BarcodeWriter
{
   Renderer = new ZXing.Rendering.AlternateBitmapRenderer();
}

The AlternateBitmapRenderer is not available for every .Net target platform / bitmap library binding.
If you are using .Net core or .Net 5.0 or above you have to use ZXing.Windows.Compatibility.AlternateBitmapRenderer from the ZXing.Net.Bindings.Windows.Compatibility package.

If the font doesn't fit your needs you can set a different one

var writer = new BarcodeWriter
{
   Renderer = new ZXing.Rendering.AlternateBitmapRenderer
   {
      TextFont = ...
   }
}

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Woetoo
Comment options

@micjahn
Comment options

Answer selected by Woetoo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants