mQR setting option

Modified on 2011/07/17 14:37 by Administrator — Categorized as: mQR

Class


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



Public Properties

DiagonalJoinStyle - Round/Rectangle/Join
ErrorCorrectionLevel - L/M/Q/H
ModulesRelation - Independent/Group

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, 
DiagonalJoinStyle = DiagonalJoinStyle.Rectangle, 
MaxModuleWidth = 12,
MaxModuleCornerRadius = 6,
MaxSymbolWidth = 140,
MinVersion = 1,
MinErrorCorrectionLevel = ErrorCorrectionLevel.L,  
SupportedECIEncodings = ECIEncoding.None,
SmoothingMode = SmoothingMode.HighQuality