B4i Question save panel as bitmap - Erel (first post)    Feb 02, 2017   (1 reaction) You can use Canvas.DrawView to draw the panel.
This sub is useful for creating a canvas:
'don't forget to release when done
Public Sub CreateCanvas (width1 As Int, height1 As Int) As Canvas
Dim iv As ImageView
iv.Initialize("")
iv.SetLayoutAnimated(0, 1, 0, 0, width1, height1)
Dim c As B4i Question How can I save a bitmap to disk ? - Erel (first post)    Jan 06, 2021 Of course.
Dim x As B4XBitmap = YourBitmap
Dim out As OutputStream = File.OpenOutput(xui.DefaultFolder, "1.png", False)
x.WriteToStream(out, 100, "PNG")
out.Close B4i Question APP crash when saving bitmap - abarnett    Mar 06, 2020 "4 TCC FF3F25A5-A6F6-3873-9A44-8464B4930400 + 7368",
"5 TCC FF3F25A5-A6F6-3873-9A44-8464B4930400 + 7176",
"6 TCC FF3F25A5-A6F6-3873-9A44-8464B4930400 + 23336",
"7 libxpc.dylib E3530448-A171-371F-9E54-6EFDA87582CA + 97304" B4i Question I am using ALAssets library, but I can't save a picture on album - JordiCP (first post)    Feb 03, 2022   (1 reaction) I used ALAssets time ago and worked nicely --> Just searched my code (probably, based on some example in the library thread). There are some differences.
Basically, after creating an album, you should wait until it is really created before storing anything in it.
The way to do it is:
Call MyPhoto B4i Question Merging a canvas to imageview before saving to gallery - MotoMusher (first post)    Feb 23, 2015   (1 reaction) Yes, it's pretty easy. You do need to pass the background. This below isn't complete, but just add a second bitmap and assign it to an imageview and add it to photopanel. Add the background first, then the drawing on top.
Sub Watermark (Image As Bitmap, background as bitmap) As Bitmap
Dim P B4i Question How can I save the photo bitmaps I generate to the Gallery - cooperlegend (first post)    Jan 13, 2017   (1 reaction) Thanks
After playing with phone.AddImageToAlbum which makes the images store visible in the gallery it now makes sense and works fine :) B4i Question KeyValueStore save a map with different types - narek adonts (first post)    Aug 19, 2015   (1 reaction) I have changed the code.
Instead of saving the bitmap I am saving the bytes of that bitmap. B4i Question Capture Panel to imageview and Share - Erel (first post)    May 15, 2019 Your code correctly saves the bitmap. What is the problem? B4i Question Shot from googlemap - webhost.company (first post)    Jul 18, 2017 I use imageview.Bitmap for save bitmap
Thanks B4i Question Save iBarcode preview as a bitmap? - JackKirk    Mar 09, 2016 Is it possible to save the iBarcode preview as a bitmap?
I have tried code of the form:
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.RootPan Page: 1   2   3   4   5   6   7   Powered by ColBERT |