I have adopted old code which makes use of Aspose.BarCode. I had to install the most recent version of BarCode since the resourse was not loaded properly when I imported my project. The original code makes use of the .ManualHints method of the BarCodeReader class. It looks like this method is no longer supported. Was it replaced with a different method or should I just remove the code?
This is what the code looks like:
static void ReadBarcode(string target_jpg, ref string barcode)
{
using (BarCodeReader reader = new BarCodeReader(target_jpg, DecodeType.Code39Standard))
{
reader.QualitySettings = QualitySettings.HighPerformance;
reader.ManualHints = ManualHint.MedianSmoothing;
while (reader.Read())
{
barcode = reader.GetCodeText();
reader.GetRegion();
}
}
}
Also, I assume I should be replacing the while loop with a foreach loop. I can replace the barcode assignment with barcode = somevariable.CodeText but what would I do with the reader.GetRegion() code?
Thanks!