Class WriteableBitmapRenderer
Renders a BitMatrix to a System.Windows.Media.Imaging.WriteableBitmap
public class WriteableBitmapRenderer : IBarcodeRenderer<WriteableBitmap>
- Inheritance
-
WriteableBitmapRenderer
- Implements
-
IBarcodeRenderer<WriteableBitmap>
- Inherited Members
Constructors
WriteableBitmapRenderer()
Initializes a new instance of the WriteableBitmapRenderer class.
public WriteableBitmapRenderer()
Properties
Background
Gets or sets the background color.
public Color Background { get; set; }
Property Value
- Color
The background color.
FontFamily
Gets or sets the font family.
public FontFamily FontFamily { get; set; }
Property Value
- FontFamily
The font family.
FontSize
Gets or sets the size of the font.
public double FontSize { get; set; }
Property Value
- double
The size of the font.
FontStretch
Gets or sets the font stretch.
public FontStretch FontStretch { get; set; }
Property Value
- FontStretch
The font stretch.
FontStyle
Gets or sets the font style.
public FontStyle FontStyle { get; set; }
Property Value
- FontStyle
The font style.
FontWeight
Gets or sets the font weight.
public FontWeight FontWeight { get; set; }
Property Value
- FontWeight
The font weight.
Foreground
Gets or sets the foreground color.
public Color Foreground { get; set; }
Property Value
- Color
The foreground color.
Methods
Render(BitMatrix, BarcodeFormat, string)
Renders the specified matrix.
public WriteableBitmap Render(BitMatrix matrix, BarcodeFormat format, string content)
Parameters
matrix
BitMatrixThe matrix.
format
BarcodeFormatThe format.
content
stringThe content.
Returns
- WriteableBitmap
Render(BitMatrix, BarcodeFormat, string, EncodingOptions)
Renders the specified matrix.
public virtual WriteableBitmap Render(BitMatrix matrix, BarcodeFormat format, string content, EncodingOptions options)
Parameters
matrix
BitMatrixThe matrix.
format
BarcodeFormatThe format.
content
stringThe content.
options
EncodingOptionsThe options.
Returns
- WriteableBitmap