Is it possible to save the iBarcode preview as a bitmap?
I have tried code of the form:
where scanner_panel is the panel I have initialized the barcode scanner instance to.
I get a photo which shows all the other views I have dumped into the scanner_panel but no barcode preview.
Thanks in anticipation...
I have tried code of the form:
B4X:
Private temp_imageview As ImageView
Private temp_rect As Rect
Private temp_bmp As Bitmap
Private temp_canvas As Canvas
temp_imageview.Initialize("")
Page1.RootPanel.AddView(temp_imageview, 0, 0, Page1.RootPanel.Width, Page1.RootPanel.Height)
temp_imageview.Visible = False
temp_canvas.Initialize(temp_imageview)
temp_rect.Initialize(0, 0, Page1.RootPanel.Width, Page1.RootPanel.Height)
temp_canvas.DrawView(scanner_panel, temp_rect)
temp_canvas.Refresh
temp_bmp = BC_Canvas.CreateBitmap
Dim temp_phone As Phone
temp_phone.AddImageToAlbum(temp_bmp)
I get a photo which shows all the other views I have dumped into the scanner_panel but no barcode preview.
Thanks in anticipation...
Last edited: