Click here to Skip to main content
16,022,189 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
I try to generate barcodes using BarcodeLib from NuGets library in visul studio 2019. But I have an error

img — OPEN PLEASE[^]

What I have tried:

I try this link GitHub - barnhill/barcodelib: C# Barcode Image Generation Library[^] but not work for me.
Posted
Updated 21-Aug-24 6:18am

1 solution

It's telling you that you are using a System.Drawing.Color value when you need to use a SkiaSharp.SKColorF. I suspect this error would disappear if you used SKColors.Black and SKColors.White (obviously you would have to have SkiaSharp added as a project reference).
 
Share this answer
 
Comments
ras bry 22-Aug-24 8:09am    
Pete O'Hanlon I tried you say and I'ts work for me, But my variable img is error. Please take a look at the image below.

https://postimg.cc/RJRV9Q5J
Dave Kreskowiak 22-Aug-24 9:42am    
STOP POSTING LINKS TO IMAGES OF THE ERRORS AND JUST POST THE TEXT OF THE ERROR HERE!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900