C#4.5版本BarcodeWriterwriter=newBarcodeWriter();writer.Format=BarcodeFormat.QR_CODE;writer.Options.Hints.Add(EncodeHintType.CHARACTER_SET,"UTF-8");//编码问题writer.Options.Hints.Add(EncodeHintType.ERROR_CORRECTION,ZXing.QrCode.Internal.ErrorCorrectionLevel.H);constintcodeSizeInPixels=240;//设置图片长宽writer.Options