ASP.NET Barcode SDK Component

TryHard

 


Enable/Disable spend more time to try to find a Barcode, optimize for accuracy, not speed.

TryHard[=bool]


Parameter
bool
enable or disable spend more time to try to find a Barcode.

Remark
This property is Read/Write.

Example

   

C#
using System.Drawing;
using System.Drawing.Imaging;
using BarcodeWrapper;

BarcodeReader reader= new BarcodeReader();
reader.ScanWithoutRotation = true;
reader.TryHard = true;
reader.ScanWith45DegreeCounterClockwiseRotation = true;
reader.ScanMultiple = true;
Bitmap bitmap = new Bitmap(strinputpath1);
int count = reader.ReadBarcodeImage(bitmap, x, y, width, height);
string text = "" + count + " codes found<br><br>";

for (int i = 0; i < count; i++)
{
text += reader.GetBarcodeType(i) + " value:" + reader.GetBarcodeValue(i) + "<br>";
}