public string DecodeBarcode() { if (string.IsNullOrEmpty(Data)) { throw new Exception("BarcodeGenerator: Input data can not be empty."); } var ibarcode = new UPCA(Data, Width, Height, _Scale); return(ibarcode.Decode(Data)); }
public Image DrawBarcode() { if (string.IsNullOrEmpty(Data)) { throw new Exception("BarcodeGenerator: Input data can not be empty."); } var ibarcode = new UPCA(Data, Width, Height, _Scale); Data = ibarcode.Data; return(ibarcode.GenerateImage()); }