/// <summary> /// Get the generated barcode as a bitmap image. /// </summary> /// <param name="barcodeValue"></param> /// <returns>Barcode image</returns> internal MemoryStream GetImage(string barcodeValue) { LinearEncoding.Clear(); Encode(BarcodeValidator.Parse(barcodeValue, Symbology)); return(LinearRenderer.DrawImageMemoryStream(this)); }
internal void Generate(string barcodeValue) { EncodedValue = BarcodeValidator.Parse(barcodeValue, Symbology); Encode(EncodedValue); }