Click here to Skip to main content
15,881,173 members
Articles / Programming Languages / C#

Open Source QRCode Library

Rate me:
Please Sign up or sign in to vote.
4.92/5 (147 votes)
20 Sep 2007CPOL1 min read 5.9M   192.2K   421  
How to use QRCode library to encode and decode QRCode
using System;
using Line = ThoughtWorks.QRCode.Geom.Line;
using Point = ThoughtWorks.QRCode.Geom.Point;

namespace ThoughtWorks.QRCode.Codec.Util
{
	/* 
	* This class must be a "edition independent" class for debug information controll.
	* I think it's good idea to modify this class with a adapter pattern
	*/
	public class DebugCanvasAdapter : DebugCanvas
	{
		public virtual void  println(String string_Renamed)
		{
		}
		
		public virtual void  drawPoint(Point point, int color)
		{
		}
		
		public virtual void  drawCross(Point point, int color)
		{
		}
		
		public virtual void  drawPoints(Point[] points, int color)
		{
		}
		
		public virtual void  drawLine(Line line, int color)
		{
		}
		
		public virtual void  drawLines(Line[] lines, int color)
		{
		}
		
		public virtual void  drawPolygon(Point[] points, int color)
		{
		}
		
		public virtual void  drawMatrix(bool[][] matrix)
		{
		}
		
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
Malaysia Malaysia
A programmer for a long time, and still learning everyday.

A supporter for open source solutions, and have written quite a few open source software both in .NET and Java.

https://mengwangk.github.io/

Comments and Discussions