Fed*_*l09 2 c# qr-code zxing silverlight-5.0
我使用此代码生成我的二维码 ZXing.Net ( http://zxingnet.codeplex.com/ )
IBarcodeWriter writer = new BarcodeWriter { Format = BarcodeFormat.QR_CODE };
qrcode.Source = writer.Write(stringsecure.Text);
Run Code Online (Sandbox Code Playgroud)
但图像非常非常小..
如果可能,如何设置尺寸?
小智 8
您可以使用 Options 属性设置结果图像的宽度和高度:
IBarcodeWriter writer = new BarcodeWriter
{
Format = BarcodeFormat.QR_CODE,
Options = new QrCodeEncodingOptions
{
Width = 400,
Height = 400
}
};
qrcode.Source = writer.Write(stringsecure.Text);
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
14795 次 |
| 最近记录: |