Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
In some cases, developers may need to get information about the placement region of a source barcode and its orientation angle. To enable such a possibility, Aspose.BarCode for .NET provides a group of properties called RegionParameters that stores the following information:
The following code sample illustrates how to get the information about barcode placement region and orientation angle for the example barcode image provided below.
//recognize image
Console.WriteLine("ReadExtRegion:");
using (BarCodeReader read = new BarCodeReader($"{path}qr_code128.png", DecodeType.QR, DecodeType.Code128))
{
foreach (BarCodeResult result in read.ReadBarCodes())
{
Console.WriteLine($"CodeType:{result.CodeTypeName}");
Console.WriteLine($"CodeText:{result.CodeText}");
Console.WriteLine($"Quadrangle:{result.Region.Quadrangle.ToString()}");
Console.WriteLine($"Angle:{result.Region.Angle.ToString()}");
Console.WriteLine($"Rectangle:{result.Region.Rectangle.ToString()}");
string ptStr = "";
foreach (Point pt in result.Region.Points)
ptStr += pt.ToString() + "";
Console.WriteLine($"Points:{ptStr}");
}
}
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.