iOS Question [B4X] [B4XPages] Barcode Reader

imbault

Well-Known Member
Licensed User
Longtime User
Hi Team,

On the B4i Barcode Reader, the barcode scanner works like a charm,

I just want to take the picture on the preview panel

Thanks a lot

Patrick
 

imbault

Well-Known Member
Licensed User
Longtime User
Thank you @Erel ,

I tried creationg Page2 with an Public ImageView1 As B4XView
then:

B4X:
Private Sub StopCamera
    Capturing = False
    btnStartStop.Text = "Start"
    'camEx.TakePicture
    pnlPreview.Visible = False
    #if B4A
    If camEx.IsInitialized Then
        camEx.Release
    End If
    #Else If B4i
    scanner.Stop
    dim bmp As B4XBitmap = pnlPreview.Snapshot
    
    If bmp.Height > 0 Then
        page2.ImageView1.SetBitmap(bmp)
        B4XPages.ShowPage("page 2")
    End If
    #end if
End Sub

And it doesn't show nothing...
is there any mistake?

Thanks
 
Upvote 0
Top