Page History: mQR setting option
Compare Page Revisions
Page Revision: 2011/07/17 14:35
Class
- Package : mQR.dll
- Defined In : index.ashx
- Class:
- Subclasses:
- Extends:
Drawing algorithm is
it's max radius 'cause we limit radius by 1/3 of module width
so if module width is 6 px and max radius is 5 px, then 6 * 1/3 = 2px radius will be used.
if module is 20px, then 20 * 1/3 = 6, so 5px will be used.
min(max radius, module size / 3).
the most important is to find joint blocks and make connection between them.
Config Options
Background = Color.White,
Foreground = Color.Black,
ForegroundImage = Image.FromFile(context.Server.MapPath(@"foreground.png")),
LBColor = Color.Black,
LTColor = Color.Black,
RTColor = Color.Black,
QuietZoneWidth = 0,
ModulesRelation = ModulesRelation.Independent, , /*Independent/Group*/
DiagonalJoinStyle = DiagonalJoinStyle.Rectangle, /* Round, Rectangle, Join */
MaxModuleWidth = 12,
MaxModuleCornerRadius = 6,
MaxSymbolWidth = 140,
MinVersion = 1,
MinErrorCorrectionLevel = ErrorCorrectionLevel.L, /*L/M/Q/H*/
SupportedECIEncodings = ECIEncoding.None,
SmoothingMode = SmoothingMode.HighQuality
- if you want, you can use Color.FromArgb(r, g, b)
like this Color.FromArgb(0xRRGGBB);
Color.FromArgb(0xff5fef);
Or
Color.FromArgb(0xff, 0x5f, 0xef);
- you can set 2 options for size
1. maximum qr code width : for example, you set maximum qr code width = 140 px
2. maximum block width : for example, maximum block width = 10 px
Public Properties
public properties
Public Methods
public Methods
Public Events
Public events
Example
Background = Color.White,
Foreground = Color.Black,
ForegroundImage = Image.FromFile(context.Server.MapPath(@"foreground.png")),
LBColor = Color.Black,
LTColor = Color.Black,
RTColor = Color.Black,
QuietZoneWidth = 0,
ModulesRelation = ModulesRelation.Independent, , /*Independent/Group*/
DiagonalJoinStyle = DiagonalJoinStyle.Rectangle, /* Round, Rectangle, Join */
MaxModuleWidth = 12,
MaxModuleCornerRadius = 6,
MaxSymbolWidth = 140,
MinVersion = 1,
MinErrorCorrectionLevel = ErrorCorrectionLevel.L, /*L/M/Q/H*/
SupportedECIEncodings = ECIEncoding.None,
SmoothingMode = SmoothingMode.HighQuality