c#中索引超出数组界限
ThoughtWorks.QRCode.Codec.QRCodeEncoderencoder=newQRCodeEncoder();encoder.QRCodeEncod...
ThoughtWorks.QRCode.Codec.QRCodeEncoder encoder = new QRCodeEncoder();
encoder.QRCodeEncodeMode=QRCodeEncoder.ENCODE_MODE.ALPHA_NUMERIC;
encoder.QRCodeScale = 4;
encoder.QRCodeVersion = 4;
encoder.QRCodeErrorCorrect = QRCodeEncoder.ERROR_CORRECTION.M;
String qrdata = "二维码信息";
System.Drawing.Bitmap bp = encoder.Encode(qrdata.ToString(),Encoding.GetEncoding("GB2312"));
Image image = bp;
Object oMissing = System.Reflection.Missing.Value;
pictureBox1.Image = bp; 展开
encoder.QRCodeEncodeMode=QRCodeEncoder.ENCODE_MODE.ALPHA_NUMERIC;
encoder.QRCodeScale = 4;
encoder.QRCodeVersion = 4;
encoder.QRCodeErrorCorrect = QRCodeEncoder.ERROR_CORRECTION.M;
String qrdata = "二维码信息";
System.Drawing.Bitmap bp = encoder.Encode(qrdata.ToString(),Encoding.GetEncoding("GB2312"));
Image image = bp;
Object oMissing = System.Reflection.Missing.Value;
pictureBox1.Image = bp; 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询