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