Skip to content

Commit 814bffa

Browse files
authored
Update Program.cs
1 parent c747917 commit 814bffa

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

samples/ImageDecoding/Program.cs

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,36 @@ static void Main(string[] args)
1515
{
1616
try
1717
{
18+
// Initialize license
19+
/*
20+
// By setting organizaion ID as "200001", a 7-day trial license will be used for license verification.
21+
// Note that network connection is required for this license to work.
22+
//
23+
// When using your own license, locate the following line and specify your Organization ID.
24+
// organizationID = "200001";
25+
//
26+
// If you don't have a license yet, you can request a trial from https://www.dynamsoft.com/customer/license/trialLicense?product=dbr&utm_source=samples&package=dotnet
27+
*/
1828
DMDLSConnectionParameters connectionInfo = BarcodeReader.InitDLSConnectionParameters();
1929
connectionInfo.OrganizationID = "200001";
2030
EnumErrorCode errorCode = BarcodeReader.InitLicenseFromDLS(connectionInfo, out string errorMsg);
2131
if (errorCode != EnumErrorCode.DBR_SUCCESS)
2232
{
2333
Console.WriteLine(errorMsg);
2434
}
25-
35+
36+
// Create an instance of Barcode Reader
2637
BarcodeReader dbr = new BarcodeReader();
2738

2839

2940
string filePath = "../../../../images/AllSupportedBarcodeTypes.png";
3041
TextResult[] results = null;
42+
43+
// Configure settings
44+
45+
// Through PublicRuntimeSetting
3146

47+
// Call GetRuntimeSettings to get current runtime settings.
3248
PublicRuntimeSettings settings = dbr.GetRuntimeSettings();
3349

3450
ImageCore ImageCore1 = new ImageCore();

0 commit comments

Comments
 (0)