Class PixelDataRenderer
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
BitMatrixThe matrix.
format
BarcodeFormatThe format.
content
stringThe content.
Returns
Render(BitMatrix, BarcodeFormat, string, EncodingOptions)
Renders the specified matrix.
public PixelData Render(BitMatrix matrix, BarcodeFormat format, string content, EncodingOptions options)
Parameters
matrix
BitMatrixThe matrix.
format
BarcodeFormatThe format.
content
stringThe content.
options
EncodingOptionsThe options.