コード例 #1
0
ファイル: BarCodeLeo.cs プロジェクト: LeoIlla777/Gestion777
 /// <summary>
 /// Encodes the raw data into binary form representing bars and spaces.  Also generates an Image of the barcode.
 /// </summary>
 /// <param name="iType">Type of encoding to use.</param>
 /// <param name="Data">Raw data to encode.</param>
 /// <returns>Image representing the barcode.</returns>
 public static Image DoEncode(TYPE iType, string Data)
 {
     using (BarCodeLeo b = new BarCodeLeo())
     {
         return(b.Encode(iType, Data));
     }//using
 }
コード例 #2
0
ファイル: BarCodeLeo.cs プロジェクト: LeoIlla777/Gestion777
 /// <summary>
 /// Encodes the raw data into binary form representing bars and spaces.  Also generates an Image of the barcode.
 /// </summary>
 /// <param name="iType">Type of encoding to use.</param>
 /// <param name="Data">Raw data to encode.</param>
 /// <param name="IncludeLabel">Include the label at the bottom of the image with data encoded.</param>
 /// <param name="DrawColor">Foreground color</param>
 /// <param name="BackColor">Background color</param>
 /// <param name="Width">Width of the resulting barcode.(pixels)</param>
 /// <param name="Height">Height of the resulting barcode.(pixels)</param>
 /// <returns>Image representing the barcode.</returns>
 public static Image DoEncode(TYPE iType, string Data, bool IncludeLabel, Color DrawColor, Color BackColor, int Width, int Height)
 {
     using (BarCodeLeo b = new BarCodeLeo())
     {
         b.IncludeLabel = IncludeLabel;
         return(b.Encode(iType, Data, DrawColor, BackColor, Width, Height));
     }//using
 }
コード例 #3
0
ファイル: BarCodeLeo.cs プロジェクト: LeoIlla777/Gestion777
 /// <summary>
 /// Encodes the raw data into binary form representing bars and spaces.  Also generates an Image of the barcode.
 /// </summary>
 /// <param name="iType">Type of encoding to use.</param>
 /// <param name="Data">Raw data to encode.</param>
 /// <param name="IncludeLabel">Include the label at the bottom of the image with data encoded.</param>
 /// <returns>Image representing the barcode.</returns>
 public static Image DoEncode(TYPE iType, string Data, bool IncludeLabel)
 {
     using (BarCodeLeo b = new BarCodeLeo())
     {
         b.IncludeLabel = IncludeLabel;
         return(b.Encode(iType, Data));
     }//using
 }
コード例 #4
0
ファイル: BarCodeLeo.cs プロジェクト: LeoIlla777/Gestion777
 /// <summary>
 /// Encodes the raw data into binary form representing bars and spaces.  Also generates an Image of the barcode.
 /// </summary>
 /// <param name="iType">Type of encoding to use.</param>
 /// <param name="Data">Raw data to encode.</param>
 /// <param name="XML">XML representation of the data and the image of the barcode.</param>
 /// <returns>Image representing the barcode.</returns>
 public static Image DoEncode(TYPE iType, string Data, ref string XML)
 {
     using (BarCodeLeo b = new BarCodeLeo())
     {
         Image i = b.Encode(iType, Data);
         XML = b.XML;
         return(i);
     }//using
 }