I'm trying to use ZXing to render a simple barcode on screen in Xamarin. I've added the ZXing package to my solution and have the following code:
BarcodeWriterPixelData writer = new BarcodeWriterPixelData
{
Format = BarcodeFormat.CODE_39 ,
Options = new ZXing.Common.EncodingOptions{
Height = 80,
Width = 30,
Margin = 0
}
};
var data = writer.Write("18898798790");
IDBarCode.Source = ImageSource.FromStream(() => new MemoryStream(data.Pixels));
However my code runs without rendering anything on screen. I've been looking for some sort of sample I can use without any sucess.