public ByteMatrix Encode(System.String contents, BarcodeFormat format, int width, int height, System.Collections.Hashtable hints)
		{
		    if (format == BarcodeFormat.EAN_8)
			{
				return new EAN8Writer().Encode(contents, format, width, height, hints);
			}
		    if (format == BarcodeFormat.EAN_13)
		    {
		        return new EAN13Writer().Encode(contents, format, width, height, hints);
		    }
		    if (format == BarcodeFormat.QR_CODE)
		    {
		        return new QRCodeWriter().Encode(contents, format, width, height, hints);
		    }
		    throw new System.ArgumentException("No encoder available for format " + format);
		}
Exemple #2
0
 public ByteMatrix Encode(System.String contents, BarcodeFormat format, int width, int height, System.Collections.Hashtable hints)
 {
     if (format == BarcodeFormat.EAN_8)
     {
         return(new EAN8Writer().Encode(contents, format, width, height, hints));
     }
     if (format == BarcodeFormat.EAN_13)
     {
         return(new EAN13Writer().Encode(contents, format, width, height, hints));
     }
     if (format == BarcodeFormat.QR_CODE)
     {
         return(new QRCodeWriter().Encode(contents, format, width, height, hints));
     }
     throw new System.ArgumentException("No encoder available for format " + format);
 }
		public ByteMatrix Encode(System.String contents, BarcodeFormat format, int width, int height)
		{
			
			return Encode(contents, format, width, height, null);
		}
Exemple #4
0
 public ByteMatrix Encode(System.String contents, BarcodeFormat format, int width, int height)
 {
     return(Encode(contents, format, width, height, null));
 }