Parameters
- barcodeWriter
- Barcode writer.
- width
- The image width, in units.
- height
- The image height, in units.
- unitOfMeasure
- The unit of measure.
Return Value
A barcode as SixLabors.ImageSharp.Image.
Important: This method generates barcode image without the barcode text, i.e. method ignores the ValueVisible property.
Use GetBarcodeAsImage(BarcodeWriter) method if you want to get barcode image with barcode text.
The image resolution can be specified using the Resolution property.
The image padding can be specified using the Padding property.
Do not generate barcodes, which contain bars with width less than 2 pixels, because such barcodes are difficult to recognize.
Target Platforms: .NET 10; .NET 9; .NET 8; .NET 7; .NET 6