示例#1
0
        /// <summary>
        /// Draws the specified text using the default barcode metrics for
        /// the specified maximum barcode height.
        /// </summary>
        /// <param name="text">The text.</param>
        /// <param name="maxBarHeight">The maximum bar height.</param>
        /// <param name="scale">
        /// The scale factor to use when rendering the barcode.
        /// </param>
        /// <returns>
        /// An <see cref="Image"/> object containing the rendered barcode.
        /// </returns>
        public Image Draw(string text, int maxBarHeight, int scale)
        {
            BarcodeMetrics defaultMetrics = GetDefaultMetrics(maxBarHeight);

            defaultMetrics.Scale = scale;
            return(Draw(text, defaultMetrics));
        }
示例#2
0
 /// <summary>
 /// Draws the specified text using the supplied barcode metrics.
 /// </summary>
 /// <param name="text">The text.</param>
 /// <param name="metrics">A <see cref="T:Barcode.BarcodeMetrics"/> object.</param>
 /// <returns></returns>
 public override sealed Image Draw(string text, BarcodeMetrics metrics)
 {
     return(Draw1d(text, (BarcodeMetrics1d)metrics));
 }
示例#3
0
 /// <summary>
 /// Draws the specified text using the supplied barcode metrics.
 /// </summary>
 /// <param name="text">The text.</param>
 /// <param name="metrics">A <see cref="T:Barcode.BarcodeMetrics"/> object.</param>
 /// <returns>
 /// An <see cref="Image"/> object containing the rendered barcode.
 /// </returns>
 public abstract Image Draw(string text, BarcodeMetrics metrics);