/// <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); }
/// <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); }
/// <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); }
}//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); }