Any advice on how to do this? let's say we have an imageview on top of a pane. Now we want to save it as as image, so the area of pane1 becomes the new image.
As you pour water into a cup, it becomes an image of B4J, perhaps with the jAWTRobot library
@Enrique Gonzalez R Thank you so much, oh high master of programming Actually I was reffering to a source code example about a favicon. You might want to look at the source (v1.1) which you can find here
I will try your solution with pane1. The imageview is on top of it.
@Cableguy Thanks. I loaded it back in which isn't optimal but I will use it in the v1.2 update of favicon example.
If you provide a little example I can bake it in into the example and credit you too
this is what I've got so far
B4X:
' Generate new icon
Private DriveName As String = "c:\"
Private IconFileName As String = "newicon.png"
Private out As OutputStream = File.OpenOutput(DriveName, IconFileName, False)
Pane1.Snapshot.WriteToStream(out)
' Load image
ImageView2.SetImage(fx.LoadImage(DriveName, IconFileName))