Table of Contents

Class PixelDataRenderer

Namespace
ZXing.Rendering
Assembly
zxing.dll

Renders a BitMatrix to an byte array with pixel data (4 byte per pixel, BGRA)

public sealed class PixelDataRenderer : IBarcodeRenderer<PixelData>
Inheritance
PixelDataRenderer
Implements
Inherited Members

Constructors

PixelDataRenderer()

Initializes a new instance of the PixelDataRenderer class.

public PixelDataRenderer()

Properties

Background

Gets or sets the background color.

[CLSCompliant(false)]
public PixelDataRenderer.Color Background { get; set; }

Property Value

PixelDataRenderer.Color

The background color.

Foreground

Gets or sets the foreground color.

[CLSCompliant(false)]
public PixelDataRenderer.Color Foreground { get; set; }

Property Value

PixelDataRenderer.Color

The foreground color.

Methods

Render(BitMatrix, BarcodeFormat, string)

Renders the specified matrix.

public PixelData Render(BitMatrix matrix, BarcodeFormat format, string content)

Parameters

matrix BitMatrix

The matrix.

format BarcodeFormat

The format.

content string

The content.

Returns

PixelData

Render(BitMatrix, BarcodeFormat, string, EncodingOptions)

Renders the specified matrix.

public PixelData Render(BitMatrix matrix, BarcodeFormat format, string content, EncodingOptions options)

Parameters

matrix BitMatrix

The matrix.

format BarcodeFormat

The format.

content string

The content.

options EncodingOptions

The options.

Returns

PixelData