API Reference
BarcodeOptions
Simplified rendering options for 1D barcodes.
Inheritance
- Object
- BarcodeOptions
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Property BarcodeBuilder.Options
Accepted by parameters
- Method Barcode.Create
- Method Barcode.Render
- Method Barcode.Render
- Method Barcode.Save
- Method BarcodeBuilder.WithOptions
Constructors
public BarcodeOptions() #Inherited Methods
Properties
public Int32 ModuleSize { get; set; } #Module size in pixels.
public Int32 QuietZone { get; set; } #Quiet zone size in modules.
public Int32 HeightModules { get; set; } #Barcode height in modules.
public Rgba32 Foreground { get; set; } #Foreground color.
public Rgba32 Background { get; set; } #Background color.
public Int32 JpegQuality { get; set; } #JPEG quality (1..100).
public JpegEncodeOptions JpegOptions { get; set; } #Optional JPEG encoding options (subsampling/progressive/metadata/etc). When set, overrides JpegQuality where applicable.
public Int32 WebpQuality { get; set; } #WebP quality (0..100). A value of 100 uses lossless VP8L.
public Int32[] IcoSizes { get; set; } #ICO output sizes in pixels (1..256). Defaults to common icon sizes.
public Boolean IcoPreserveAspectRatio { get; set; } #When true, preserves aspect ratio and pads to square for ICO.
public Boolean HtmlEmailSafeTable { get; set; } #When true, renders HTML using email-safe tables.
public String LabelText { get; set; } #Optional label text rendered under the bars.
public Int32 LabelFontSize { get; set; } #Label font size in pixels.
public Int32 LabelMargin { get; set; } #Vertical margin between bars and label in pixels.
public Rgba32 LabelColor { get; set; } #Label text color.
public String LabelFontFamily { get; set; } #Label font family (SVG/HTML).