Android Question Joining several images into one image.

vecino

Well-Known Member
Licensed User
Longtime User
Hi, I have several images and I want to join them all together to get a single image.
How can I do it?
Thank you very much.


exa.jpg
 

zed

Active Member
Licensed User
You have to redraw the images on the canvas and then you save the canvas
Use asdraw

To draw the image on the canvas
B4A:
Private cv1 As ASDraw
Private bg As Bitmap

bg = LoadBitmapResize(File.DirInternal, FileName, Width, Height, True)
cv1.BackgroundImage_setImage(bg,True)

then you record
B4A:
Dim Out As OutputStream
Out = File.OpenOutput(File.DirInternal, "yourfile.jpg", False)
cv1.ImageComplete.WriteToStream(Out, 100, "JPEG")
File.Copy(File.DirInternal, "yourfile.jpg",File.DirRootExternal&"/download","yourfile.jpg")
Out.Close
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
Hi, I think I misunderstood, there is only one image included.
What I want is to add several images (each one below the previous one) to create a single image.
 
Upvote 0

Alexander Stolte

Expert
Licensed User
Longtime User
 
Upvote 0
Top