qrcode 1.3.0

qrcode writen in dlang.


To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

dqrcode

qrcode powered by dlang

Additional description

  • it support svg png

TODO

  • change folder
  • remove app.d
  • add example
  • add test case

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);
}

Authors: donglei

Dependencies: none

Versions:
1.3.0 2016-Jul-06
~master 2016-Jul-06
Show all 2 versions
Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 0 downloads total