Exemplo n.º 1
0
        private TextPrintContentBuffer mutiContent()
        {
            TextPrintContentBuffer sb = new TextPrintContentBuffer();

            sb.AppendText("党的十九大是在我国全面建成小康社会决胜阶段召开的一次十分重要的代表大会十九大代表是从全体党员中千挑万选出来的优秀分子坚决同以习近平同志为核心的党中央保持高度一致", 9, false);
            sb.AppendText("浙江温州浙江温州皮革厂倒闭了");
            sb.AppendText("导办信息单", 20, true);

            Bitmap img = new BaseQrCode().Generator("http://image.baidu.com/search/index?tn=baiduimage&ct=201326592&lm=-1&cl=2&ie=gbk&word=%C8%FD%BD%C7%BC%FD%CD%B7%20%CD%BC%C6%AC&hs=2&xthttps=000000&fr=ala&ori_query=%E4%B8%89%E8%A7%92%E7%AE%AD%E5%A4%B4%20%E5%9B%BE%E7%89%87&ala=0&alatpl=sp&pos=0", 170).ToBitmap();

            sb.AppendImage(img);
            sb.AppendText("浙江温州浙江温州皮革厂倒闭了");
            sb.AppendText("浙江温州浙江温州皮革厂倒闭了");
            sb.AppendText("浙江温州浙江温州皮革厂倒闭了");
            sb.AppendText("浙江温州浙江温州皮革厂倒闭了");
            sb.AppendText("浙江温州浙江温州皮革厂倒闭了");
            sb.AppendText("浙江温州浙江温州皮革厂倒闭了");
            sb.AppendText("浙江温州浙江温州皮革厂倒闭了");
            sb.AppendText("浙江温州浙江温州皮革厂倒闭了");
            sb.AppendText("浙江温州浙江温州皮革厂倒闭了");
            sb.AppendText("安全驾驶,文明出行", 20);

            return(sb);
        }
Exemplo n.º 2
0
        private void btnGenerator_Click(object sender, EventArgs e)
        {
            BaseQrCode simpleQrCode = new BaseQrCode(QrCodeString.Text, (int)QrCodeSize.Value);

            this.QrCodeImage.Image = simpleQrCode.Generator().ToBitmap();
        }