barnhill / barcodelib

C# Barcode Image Generation Library
Apache License 2.0
736 stars 239 forks source link

Having Issue with SaveImage #159

Closed AmyMcD75 closed 1 year ago

AmyMcD75 commented 1 year ago

Using Version 3.0.0, and using the SaveImage method with a Bmp SaveType.

Barcodelib is coming back with this error message:

ESAVEIMAGE-1: Could not save image.

======================= Object reference not set to an instance of an object.

Bmp is a valid Save type, so why am I getting this error message?

barnhill commented 1 year ago

Apparently there are several formats not supported via the windows codec that SkiaSharp imports which is weird that windows only supports the other 3 in the lib. I am going to remove BMP support for now till its supported across all platforms. BMPs are very large in comparison to the other formats so those are more preferred any way.

barnhill commented 1 year ago

Here is the commit: https://github.com/barnhill/barcodelib/commit/ff3cb68c43ed69dac8fccd311e7942d1f9df5f4c