Class PngByteQRCode
Inheritance
PngByteQRCode
Assembly: Subsembly.Scraper.dll
Syntax
public sealed class PngByteQRCode : AbstractQRCode, IDisposable
Constructors
PngByteQRCode()
Constructor without params to be used in COM Objects connections
Declaration
PngByteQRCode(QRCodeData)
Declaration
public PngByteQRCode(QRCodeData data)
Parameters
Methods
GetGraphic(int, bool)
Creates a black and white PNG of the QR code, using 1-bit grayscale.
Declaration
public byte[] GetGraphic(int pixelsPerModule, bool drawQuietZones = true)
Parameters
Type |
Name |
Description |
int |
pixelsPerModule |
|
bool |
drawQuietZones |
|
Returns
GetGraphic(int, byte[], byte[], bool)
Creates 2-color PNG of the QR code, using 1-bit indexed color. Accepts 3-byte RGB colors for normal images and 4-byte RGBA-colors for transparent images.
Declaration
public byte[] GetGraphic(int pixelsPerModule, byte[] darkColorRgba, byte[] lightColorRgba, bool drawQuietZones = true)
Parameters
Type |
Name |
Description |
int |
pixelsPerModule |
|
byte[] |
darkColorRgba |
|
byte[] |
lightColorRgba |
|
bool |
drawQuietZones |
|
Returns
Implements