Android Question Merging 2 images

Discussion in 'Android Questions' started by Devv, Mar 28, 2015.

  1. Devv

    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
     
  2. Cableguy

    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.
     
    jinyistudio and Devv like this.
  3. Devv

    Devv Active Member Licensed User

    can you please give me example on the first method ?
     
  4. Informatix

    Informatix Expert Licensed User

    Look at the BetterImageView library.
     
    jinyistudio and Peter Simpson like this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice