Skip to content

Compare: Advanced usage QR Code renderers

Showing with 67 additions and 17 deletions.
  1. +7 −14 Advanced-usage---Payload-generators.md
  2. +12 −1 Advanced-usage---QR-Code-renderers.md
  3. +48 −2 Release-Notes.md
13 changes: 12 additions & 1 deletion Advanced-usage---QR-Code-renderers.md

Parameter table

There are twothree overloads:

Overload 1 (Return type: byte[])

Overload 2 (Return type: byte[])

Parameter name Type Default Description
pixelsPerModule int The pixel size each b/w module is drawn
darkColorRgba byte[] The color of the dark modules, as RGB(A) array
lightColorRgba byte[] The color of the light modules, as RGB(A) array
drawQuietZones bool true If true a white border is drawn around the whole QR Code
Parameter name Type Default Description
pixelsPerModule int The pixel size each b/w module is drawn
darkColorRgba byte[] The color of the dark modules, as RGB(A) array
lightColorRgba byte[] The color of the light modules, as RGB(A) array
drawQuietZones bool true If true a white border is drawn around the whole QR Code

Overload 3 (Return type: byte[])
Not available under NET_STANDARD_1_3

Parameter name Type Default Description
pixelsPerModule int The pixel size each b/w module is drawn
darkColor Color The color of the dark/black modules
lightColor Color The color of the light/white modules
drawQuietZones bool true If true a white border is drawn around the whole QR Code

Good to know

Since this method shall be 100% platform independent the Png in the byte[] is created manually byte by byte. So this renderer doesn't offer any fancy parameters right now. If you are an Png expert feel free to improve the code. If you aren't but want a cool QR code, use the QR code module matrix and create your own renderer.

Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ using (InMemoryRandomAccessStream stream = new InMemoryRandomAccessStream())
```

#### Parameter table
There are two overloads:
There are three overloads:

**Overload 1** *(Return type: byte[])*

Expand All @@ -339,6 +339,17 @@ There are two overloads:
|drawQuietZones|bool|`true`|If true a white border is drawn around the whole QR Code|


**Overload 3** *(Return type: byte[])*
<sup>Not available under NET_STANDARD_1_3</sup>

|Parameter name|Type|Default|Description|
|---|---|---|---|
|pixelsPerModule|int||The pixel size each b/w module is drawn|
|darkColor|Color||The color of the dark/black modules|
|lightColor|Color||The color of the light/white modules|
|drawQuietZones|bool|`true`|If true a white border is drawn around the whole QR Code|


#### Good to know
Since this method shall be 100% platform independent the Png in the byte[] is created manually byte by byte. So this renderer doesn't offer any fancy parameters right now. If you are an Png expert feel free to improve the code. If you aren't but want a cool QR code, use the QR code module matrix and create your own renderer.

Expand Down