qrcode 1.4.0
QRCode writen in D programming lanuage.
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
dqrcode
qrcode powered by dlang
Additional description
- it support svg png
TODO
- change folder (Done)
- remove app.d (Done)
- add example (Done)
- add test case
compile use ldc2
dub build --build=release --compiler=ldc2 -v -f
example
void main()
{
testQrCode();
}
void testQrCode()
{
import qrcode;
AbstractRenderer plain = new Svg();
plain.setWidth(250);
plain.setHeight(250);
plain.setRoundDimensions(true);
plain.setBackgroundColor(new Rgb(255,0,255));
plain.setForegroundColor(new Rgb(0,0,255));
//plain.setMargin(0);
QrCodeWriter wr = new QrCodeWriter(plain);
//auto xx = wr.writeString("donglei donglei", "UTF-8", ErrorCorrectionLevel.H);
//writeln(xx);
wr.writeFile("Hello World Powered By D", "hello-world.svg", "UTF-8", ErrorCorrectionLevel.H);
}
- Registered by zoujiaqing
- 1.4.0 released 6 years ago
- huntlabs/qrcode
- Apache-2.0
- Copyright (C) 2015-2016 Shanghai Putao Technology Co., Ltd
- Authors:
- Dependencies:
- dmagick
- Versions:
-
1.4.0 2018-Jan-26 1.3.0 2016-Jul-06 ~master 2018-Jan-26 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
34 downloads total
-
- Score:
- 1.7
- Short URL:
- qrcode.dub.pm