コード例 #1
0
ファイル: BarcodeLib.cs プロジェクト: Basilid/Spheres
 /// <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="StringToEncode">Raw data to encode.</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, Color DrawColor, Color BackColor, int Width, int Height)
 {
     Barcode b = new Barcode();
     return b.Encode(iType, data, DrawColor, BackColor, Width, Height);
 }
コード例 #2
0
ファイル: BarcodeLib.cs プロジェクト: Basilid/Spheres
 /// <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="StringToEncode">Raw data to encode.</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, int Width, int Height)
 {
     Barcode b = new Barcode();
     return b.Encode(iType, data, Width, Height);
 }
コード例 #3
0
ファイル: BarcodeLib.cs プロジェクト: Basilid/Spheres
 /// <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="StringToEncode">Raw data to encode.</param>
 /// <param name="DrawColor">Foreground color</param>
 /// <param name="BackColor">Background color</param>
 /// <returns>Image representing the barcode.</returns>
 public static Image DoEncode(TYPE iType, string data, Color DrawColor, Color BackColor)
 {
     Barcode b = new Barcode();
     return b.Encode(iType, data, DrawColor, BackColor);
 }
コード例 #4
0
ファイル: BarcodeLib.cs プロジェクト: Basilid/Spheres
        }//CheckNumericOnly
        #endregion

        #region Static Methods
        /// <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="StringToEncode">Raw data to encode.</param>
        /// <returns>Image representing the barcode.</returns>
        public static Image DoEncode(TYPE iType, string data)
        {
            Barcode b = new Barcode();
            return b.Encode(iType, data);
        }