Welcome Guest, you are in: Login

MUST Creative Engineering Laboratory

RSS RSS

Navigation



Technical Doc



Search the wiki
»

MUST Corp.

MUST Corp.

www.must.or.kr

 Microsoft CERTIFIED Partner Software Development, Web Development, Data Platform

 Microsoft Small Business Specialist

MCSD

Microsoft Certified IT Professional

Microsoft Certified Professional Developer

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

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

MUST Creative Engineering Laboratory

ImageImage Image Image

Image Image Image Image Image Image Image

Copyright © 2010 MUST Corp. All rights reserved. must@must.or.kr
This Program is released under the GNU General Public License v2. View the GNU General Public License v2 or visit the GNU website.