Table of Contents

Class BitmapRenderer

Namespace
ZXing.Rendering
Assembly
zxing.dll

Renders a BitMatrix to a System.Drawing.Bitmap image

public class BitmapRenderer : IBarcodeRenderer<Bitmap>
Inheritance
BitmapRenderer
Implements
Inherited Members

Constructors

BitmapRenderer()

Initializes a new instance of the BitmapRenderer class.

public BitmapRenderer()

Properties

Background

Gets or sets the background color.

public Color Background { get; set; }

Property Value

Color

The background color.

DpiX

Gets or sets the resolution which should be used to create the bitmap If nothing is set the current system settings are used

public float? DpiX { get; set; }

Property Value

float?

DpiY

Gets or sets the resolution which should be used to create the bitmap If nothing is set the current system settings are used

public float? DpiY { get; set; }

Property Value

float?

Foreground

Gets or sets the foreground color.

public Color Foreground { get; set; }

Property Value

Color

The foreground color.

TextFont

Gets or sets the text font.

public Font TextFont { get; set; }

Property Value

Font

The text font.

Methods

Render(BitMatrix, BarcodeFormat, string)

Renders the specified matrix.

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

Parameters

matrix BitMatrix

The matrix.

format BarcodeFormat

The format.

content string

The content.

Returns

Bitmap

Render(BitMatrix, BarcodeFormat, string, EncodingOptions)

Renders the specified matrix.

public virtual Bitmap 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

Bitmap