Skip to content

Commit f022c86

Browse files
authored
Update Program.cs
1 parent bde398e commit f022c86

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

samples/ImageDecoding/Program.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
using Dynamsoft;
55
using Dynamsoft.DBR;
66
using System.Windows.Forms;
7-
using Dynamsoft.Core;
87

98

109
namespace ImageDecoding
@@ -47,10 +46,8 @@ static void Main(string[] args)
4746
// Call GetRuntimeSettings to get current runtime settings.
4847
PublicRuntimeSettings settings = dbr.GetRuntimeSettings();
4948

50-
ImageCore ImageCore1 = new ImageCore();
51-
ImageCore1.IO.LoadImage(filePath);
52-
53-
Bitmap bmp = (Bitmap)(ImageCore1.ImageBuffer.GetBitmap(ImageCore1.ImageBuffer.CurrentImageIndexInBuffer));
49+
Bitmap bmp = new Bitmap(filePath);
50+
5451
results = dbr.DecodeBitmap(bmp, "");
5552

5653
if (results != null && results.Length > 0)

0 commit comments

Comments
 (0)