ithoxd-qrcode ~master
qrcode writen in dlang.
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
ldc2编译
dub build --build=release --compiler=ldc2 -v -f
example
void main()
{
testQrCode();
}
void testQrCode()
{
import ithox.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 donglei
- ~master released 8 years ago
- donglei/dqrcode
- GPL
- Copyright © 2015, donglei
- Authors:
- Dependencies:
- none
- Versions:
-
1.2.2 2016-Jul-06 1.2.1 2016-Jun-07 1.2.0-png-with-icon 2015-Nov-12 1.1.0-png 2015-Nov-11 1.0.0-svg 2015-Nov-10 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
135 downloads total
-
- Score:
- 0.6
- Short URL:
- ithoxd-qrcode.dub.pm