bskotu555 Active Member Apr 28, 2025 #1 b4a: Dim in As InputStream in.InitializeFromBytesArray(nc,0,nc.Length) Dim bmp As Bitmap bmp.Initialize2(in) Panel1.RemoveAllViews Panel1.GetBitmap.IsInitialized(bmp)
b4a: Dim in As InputStream in.InitializeFromBytesArray(nc,0,nc.Length) Dim bmp As Bitmap bmp.Initialize2(in) Panel1.RemoveAllViews Panel1.GetBitmap.IsInitialized(bmp)
Erel B4X founder Staff member Licensed User Longtime User Apr 28, 2025 #2 Use BytesToImage: https://www.b4x.com/android/forum/threads/b4x-bytes-to-file.70111/#post-445167 Upvote 0
bskotu555 Active Member Apr 28, 2025 #3 Erel said: Use BytesToImage: https://www.b4x.com/android/forum/threads/b4x-bytes-to-file.70111/#post-445167 Click to expand... How to modify this sentence: Panel1. Getbitmap (BytesToImage (nc)) Upvote 0
Erel said: Use BytesToImage: https://www.b4x.com/android/forum/threads/b4x-bytes-to-file.70111/#post-445167 Click to expand... How to modify this sentence: Panel1. Getbitmap (BytesToImage (nc))
aeric Expert Licensed User Longtime User Apr 28, 2025 #4 B4X: Panel1.SetBitmap(BytesToImage(nc)) Upvote 0
bskotu555 Active Member Apr 28, 2025 #5 OK: Panel1.RemoveAllViews Panel1.SetBitmap(BytesToImage(nc).Resize(Panel1.Width, Panel1.Height, True)) Upvote 0
OK: Panel1.RemoveAllViews Panel1.SetBitmap(BytesToImage(nc).Resize(Panel1.Width, Panel1.Height, True))