www.pudn.com > QRCodeLib.rar > Program.cs, change:2008-12-30,size:582b


´╗┐using System; 
using System.Collections.Generic; 
using System.Text; 
using ThoughtWorks.QRCode.Codec; 
using System.Drawing; 
using System.IO; 
 
namespace ConsoleApplication1 
{ 
    class Program 
    { 
        static void Main(string[] args) 
        { 
            QRCodeEncoder e = new QRCodeEncoder(); 
 
            e.QRCodeEncodeMode = QRCodeEncoder.ENCODE_MODE.BYTE; 
            e.QRCodeScale = 5; 
            e.QRCodeErrorCorrect = QRCodeEncoder.ERROR_CORRECTION.Q; 
 
            Bitmap s = e.Encode("1"); 
            s.Save(@"C:\456.bmp"); 
        } 
    } 
}