A QRCode must be big enough to be scanned easily and small enough to fit into a page without occupying much space. You can resize the control, as well as the symbols within the control to improve the resolution of the control. Complete the following steps to change the size of the control, as well as the symbols.
Set the Height, Width and SymbolSize properties within the <cc1:C1QRCode>
tag to resize the QRCode.
Source View |
Copy Code
|
---|---|
<cc1:C1QRCode ID="C1QRCode1" runat="server" Height="150px" Text="QRCode Sample Text" Width="150px" SymbolSize="5" /> |
Add the following code to the Page_Load event to set the Height, Width and SymbolSize properties in code view.
C# |
Copy Code
|
---|---|
C1QRCode1.Height = 150; C1QRCode1.Width = 150; C1QRCode1.SymbolSize = 5; |
VB |
Copy Code
|
---|---|
C1QRCode1.Height = 150 C1QRCode1.Width = 150 C1QRCode1.SymbolSize = 5 |
When you run your application, notice that the size of the QRCode as well as its symbols is now bigger.