Class BitmapRenderer
Renders a BitMatrix to a System.Drawing.Bitmap image
public class BitmapRenderer : IBarcodeRenderer<Bitmap>
- Inheritance
-
BitmapRenderer
- Implements
-
IBarcodeRenderer<Bitmap>
- 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
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
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
BitMatrixThe matrix.
format
BarcodeFormatThe format.
content
stringThe 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
BitMatrixThe matrix.
format
BarcodeFormatThe format.
content
stringThe content.
options
EncodingOptionsThe options.
Returns
- Bitmap