VintaSoft Barcode .NET SDK v11.0
In This Topic
    Get barcode image as Android.Graphics.Bitmap object in Xamarin.Android
    In This Topic

    Example: Here is an example that shows how to get a barcode as Android.Graphics.Bitmap object.

    // create the barcode writer
    Vintasoft.XamarinBarcode.BarcodeWriter barcodeWriter = new Vintasoft.XamarinBarcode.BarcodeWriter();
    
    // set the barcode writer settings
    barcodeWriter.Settings.Barcode = Vintasoft.XamarinBarcode.BarcodeType.Code128;
    barcodeWriter.Settings.Value = "012345abcde";
    
    // get barcode image as Android.Graphics.Bitmap object
    Android.Graphics.Bitmap bitmap = barcodeWriter.GetBarcodeAsBitmap();