Class BitmapRenderer
Renders a ZXing.Common.BitMatrix to a System.Drawing.Bitmap image
Inheritance
System.Object
BitmapRenderer
Namespace: ZXing.Rendering
Assembly: IronPdf.dll
Syntax
public class BitmapRenderer : Object
Constructors
BitmapRenderer()
Initializes a new instance of the BitmapRenderer class.
Declaration
public BitmapRenderer()
Properties
Background
Gets or sets the background color.
Declaration
public Color Background { get; set; }
Property Value
Type | Description |
---|---|
System.Drawing.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
Declaration
public Nullable<float> DpiX { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Single> |
DpiY
Gets or sets the resolution which should be used to create the bitmap If nothing is set the current system settings are used
Declaration
public Nullable<float> DpiY { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Single> |
Foreground
Gets or sets the foreground color.
Declaration
public Color Foreground { get; set; }
Property Value
Type | Description |
---|---|
System.Drawing.Color | The foreground color. |
TextFont
Gets or sets the text font.
Declaration
public Font TextFont { get; set; }
Property Value
Type | Description |
---|---|
System.Drawing.Font | The text font. |
Methods
Render(, BarcodeFormat, String)
Declaration
public Bitmap Render( matrix, BarcodeFormat format, string content)
Parameters
Type | Name | Description |
---|---|---|
| matrix | |
ZXing.BarcodeFormat | format | |
System.String | content |
Returns
Type | Description |
---|---|
System.Drawing.Bitmap |
Render(, BarcodeFormat, String, EncodingOptions)
Declaration
public Bitmap Render( matrix, BarcodeFormat format, string content, EncodingOptions options)
Parameters
Type | Name | Description |
---|---|---|
| matrix | |
ZXing.BarcodeFormat | format | |
System.String | content | |
ZXing.Common.EncodingOptions | options |
Returns
Type | Description |
---|---|
System.Drawing.Bitmap |