Tagliatti / NetBarcode

Barcode generation library written in C# and .NET Standard 2
MIT License
337 stars 68 forks source link

barcode.SaveImage does not save image #19

Closed jezile closed 3 years ago

jezile commented 3 years ago

Hi,

Below code does not save image nor returning any exception:

Dim barcode = New Barcode("123456789", TYPE.CODE128)
barcode.SaveImage("test.png", SaveTypes.PNG)

Using NetBarcode 1.4.0 installed via NuGet

Also Looks like docs are not up to date, barcode.SaveImageFile does not exist.

Regards,

Tagliatti commented 3 years ago

Hello, as you can check here https://github.com/Tagliatti/NetBarcode/blob/86cfc62c40c4cabb8a9805d062d33307664fc31b/NetBarcode/Barcode.cs#L468 the function exists. I'm not sure, but VB is not compatible with .NET Core. The requirements for rolling lib are, .NET Standard 2, libc6-dev and libgdiplus.

jezile commented 3 years ago

Hi,

I've compiled code to net472 and works fine in full Framework - void SaveImageFile shows now and image file is generated.

Thanks