CodeGlyphX logo
CodeGlyphX

API Reference

Class

BarcodePngRenderOptions

Namespace CodeGlyphX.Rendering.Png
Assembly CodeGlyphX
Modifiers sealed

Options for BarcodePngRenderer.

Inheritance

  • Object
  • BarcodePngRenderOptions

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters

Constructors

Methods

public BarcodePngRenderOptions WithBackground(Rgba32 color) #
Returns: BarcodePngRenderOptions

Sets the background color.

Parameters

color CodeGlyphX.Rendering.Png.Rgba32 requiredposition: 0
public BarcodePngRenderOptions WithForeground(Rgba32 color) #
Returns: BarcodePngRenderOptions

Sets the bar (foreground) color.

Parameters

color CodeGlyphX.Rendering.Png.Rgba32 requiredposition: 0
public BarcodePngRenderOptions WithHeightModules(Int32 heightModules) #
Returns: BarcodePngRenderOptions

Sets the barcode height in modules.

Parameters

heightModules System.Int32 requiredposition: 0
public BarcodePngRenderOptions WithLabelColor(Rgba32 color) #
Returns: BarcodePngRenderOptions

Sets the label color.

Parameters

color CodeGlyphX.Rendering.Png.Rgba32 requiredposition: 0
public BarcodePngRenderOptions WithLabelFontSize(Int32 size) #
Returns: BarcodePngRenderOptions

Sets the label font size in pixels.

Parameters

size System.Int32 requiredposition: 0
public BarcodePngRenderOptions WithLabelMargin(Int32 margin) #
Returns: BarcodePngRenderOptions

Sets the label margin in pixels.

Parameters

margin System.Int32 requiredposition: 0
public BarcodePngRenderOptions WithLabelText(String text) #
Returns: BarcodePngRenderOptions

Sets the label text.

Parameters

text System.String requiredposition: 0
public BarcodePngRenderOptions WithModuleSize(Int32 size) #
Returns: BarcodePngRenderOptions

Sets the module size in pixels.

Parameters

size System.Int32 requiredposition: 0
public BarcodePngRenderOptions WithPngCompressionLevel(Int32 level) #
Returns: BarcodePngRenderOptions

Sets the PNG compression level (0 = stored/uncompressed, 1-9 = compressed).

Parameters

level System.Int32 requiredposition: 0
public BarcodePngRenderOptions WithQuietZone(Int32 quietZone) #
Returns: BarcodePngRenderOptions

Sets the quiet zone size in modules.

Parameters

quietZone System.Int32 requiredposition: 0

Properties

public Int32 ModuleSize { get; set; } #

Gets or sets the size of a single module in pixels.

public Int32 QuietZone { get; set; } #

Gets or sets the quiet zone size in modules.

public Int32 HeightModules { get; set; } #

Gets or sets the barcode height in modules.

public Rgba32 Foreground { get; set; } #

Gets or sets the foreground (bar) color.

public Rgba32 Background { get; set; } #

Gets or sets the background (space) color.

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 color.

public Int32 PngCompressionLevel { get; set; } #

PNG compression level (0 = stored/uncompressed, 1-9 = compressed).