Пример #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);
		}
Пример #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);
 }
Пример #3
0
		public ByteMatrix Encode(System.String contents, BarcodeFormat format, int width, int height)
		{
			
			return Encode(contents, format, width, height, null);
		}
Пример #4
0
 public ByteMatrix Encode(System.String contents, BarcodeFormat format, int width, int height)
 {
     return(Encode(contents, format, width, height, null));
 }