Exemplo n.º 1
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);
		}
Exemplo n.º 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);
 }
Exemplo n.º 3
0
		public ByteMatrix Encode(System.String contents, BarcodeFormat format, int width, int height)
		{
			
			return Encode(contents, format, width, height, null);
		}
Exemplo n.º 4
0
 public ByteMatrix Encode(System.String contents, BarcodeFormat format, int width, int height)
 {
     return(Encode(contents, format, width, height, null));
 }