Android Question Merging 2 images

Devv

Active Member
Licensed User
hi, how could i merge 2 images the first is jpg and the second is png
i want the png on top of the jpg

i need merging without any effects , how to do that ?
thanks in advanced
 

Cableguy

Expert
Licensed User
the png must have transparency in order to have the seethrough effect over the jpg.
you can do in one of two ways:
place the two imageviews one over the other if you only need the on screen effect
copy the jpg to a canvas and the copy the png to that same canvas, set the imageview to have the canvas as a source. this way you can also save the resulting image.
 

Devv

Active Member
Licensed User
the png must have transparency in order to have the seethrough effect over the jpg.
you can do in one of two ways:
place the two imageviews one over the other if you only need the on screen effect
copy the jpg to a canvas and the copy the png to that same canvas, set the imageview to have the canvas as a source. this way you can also save the resulting image.
can you please give me example on the first method ?
 
Top