You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: QRCoder.Xaml/Assets/nuget-readme-xaml.md
+14-24Lines changed: 14 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,16 @@
1
-
## About
1
+
## About
2
2
3
-
QRCoder is a simple library, written in C#.NET, which enables you to create QR codes. It hasn't any dependencies to other libraries and is available as .NET Framework and .NET Core PCL version on NuGet.
3
+
QRCoder.Xaml is an extension that provides the `XamlQRCode`-renderer for the popular [QRCoder.NET library](https://www.nuget.org/packages/QRCoder/). It allows you to render QRCodes as `DrawingImage`-objects for usage in WPF/XAML-based projects.
4
+
5
+
For usage information see the demo code below. For more general information check the [QRCoder-wiki](https://github.com/codebude/QRCoder/wiki).
4
6
5
7
***
6
8
7
9
## Documentation
8
10
9
11
👉 *Your first place to go should be our wiki. Here you can find a detailed documentation of the QRCoder and its functions.*
*[**QRCode Wiki > XamlQRCode**](https://github.com/codebude/QRCoder/wiki/Advanced-usage---QR-Code-renderers#28-xamlqrcode-renderer-in-detail)
11
14
*[Creator's blog (english)](http://en.code-bude.net/2013/10/17/qrcoder-an-open-source-qr-code-generator-implementation-in-csharp/)
12
15
*[Creator's blog (german)](http://code-bude.net/2013/10/17/qrcoder-eine-open-source-qr-code-implementierung-in-csharp/)
13
16
@@ -16,38 +19,25 @@ The release notes for the current and all past releases can be read here: [📄
16
19
17
20
## Usage / Quick start
18
21
19
-
You only need five lines of code, to generate and view your first QR code.
22
+
You only need four lines of code, to generate and view your first QR code.
20
23
21
24
```csharp
22
-
QRCodeGeneratorqrGenerator=newQRCodeGenerator();
23
-
QRCodeDataqrCodeData=qrGenerator.CreateQrCode("The text which should be encoded.", QRCodeGenerator.ECCLevel.Q);
24
-
QRCodeqrCode=newQRCode(qrCodeData);
25
-
BitmapqrCodeImage=qrCode.GetGraphic(20);
25
+
using (QRCodeGeneratorqrGenerator=newQRCodeGenerator())
26
+
using (QRCodeDataqrCodeData=qrGenerator.CreateQrCode("The text which should be encoded.", eccLevel))
27
+
using (XamlQRCodeqrCode=newXamlQRCode(qrCodeData))
28
+
{
29
+
DrawingImageqrCodeAsXaml=qrCode.GetGraphic(20);
30
+
}
26
31
```
27
32
28
33
### Optional parameters and overloads
29
34
30
-
The GetGraphics-method has some more overloads. The first two enable you to set the color of the QR code graphic. One uses Color-class-types, the other HTML hex color notation.
There are a plenty of other options. So feel free to read more on that in our wiki: [Wiki: How to use QRCoder](https://github.com/codebude/QRCoder/wiki/How-to-use-QRCoder)
47
36
48
37
## Help & Issues
49
38
50
-
If you think you have a bug or have new ideas/feature requests, then feel free to open a new issues: https://github.com/codebude/QRCoder/issues
39
+
If you think you have found a bug or have new ideas or feature requests, then feel free to open a new issue: https://github.com/codebude/QRCoder/issues
40
+
51
41
In case you have a question about using the library (and couldn't find an answer in our wiki), feel free to open a new question/discussion: https://github.com/codebude/QRCoder/discussions
Copy file name to clipboardExpand all lines: QRCoder/Assets/nuget-readme.md
+10-7Lines changed: 10 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
## About
1
+
## About
2
2
3
3
QRCoder is a simple library, written in C#.NET, which enables you to create QR codes. It hasn't any dependencies to other libraries and is available as .NET Framework and .NET Core PCL version on NuGet.
4
4
@@ -16,13 +16,15 @@ The release notes for the current and all past releases can be read here: [📄
16
16
17
17
## Usage / Quick start
18
18
19
-
You only need five lines of code, to generate and view your first QR code.
19
+
You only need four lines of code, to generate and view your first QR code.
20
20
21
21
```csharp
22
-
QRCodeGeneratorqrGenerator=newQRCodeGenerator();
23
-
QRCodeDataqrCodeData=qrGenerator.CreateQrCode("The text which should be encoded.", QRCodeGenerator.ECCLevel.Q);
24
-
QRCodeqrCode=newQRCode(qrCodeData);
25
-
BitmapqrCodeImage=qrCode.GetGraphic(20);
22
+
using (QRCodeGeneratorqrGenerator=newQRCodeGenerator())
23
+
using (QRCodeDataqrCodeData=qrGenerator.CreateQrCode("The text which should be encoded.", QRCodeGenerator.ECCLevel.Q))
24
+
using (QRCodeqrCode=newQRCode(qrCodeData))
25
+
{
26
+
BitmapqrCodeImage=qrCode.GetGraphic(20);
27
+
}
26
28
```
27
29
28
30
### Optional parameters and overloads
@@ -47,7 +49,8 @@ There are a plenty of other options. So feel free to read more on that in our wi
47
49
48
50
## Help & Issues
49
51
50
-
If you think you have a bug or have new ideas/feature requests, then feel free to open a new issues: https://github.com/codebude/QRCoder/issues
52
+
If you think you have found a bug or have new ideas or feature requests, then feel free to open a new issue: https://github.com/codebude/QRCoder/issues
53
+
51
54
In case you have a question about using the library (and couldn't find an answer in our wiki), feel free to open a new question/discussion: https://github.com/codebude/QRCoder/discussions
0 commit comments