Example #1
0
        public void Test1()
        {
            var factory = new QrCodeFactory();
            var service = factory.Create("D:\\Test");

            service.Correction(ErrorCorrectionLevel.M);
            service.Size(QrSize.Large);
            var fileName = service.Save("http://www.cnblogs.com/jianxuanbing/p/7376757.html");

            Output.WriteLine(fileName);
        }
Example #2
0
        public void Test3()
        {
            var factory = new QrCodeFactory();
            var service = factory.Create("D:\\Test");

            service.Correction(ErrorCorrectionLevel.M);
            service.Size(QrSize.Large);
            service.Logo(@"D:\Test\test.jpg");
            for (int i = 0; i < 1; i++)
            {
                var fileName = service.Save("这是一个非常严重的Bug,因此我需要进行验证一下中文的情况下是否能生成二维码");
                Output.WriteLine(fileName);
            }
        }