Reputation: 43
I am trying to attach the transparent alpha channel to png image in java. Image should not be changed after merging of alpha channel. In short,
Upvotes: 1
Views: 7147
Reputation: 17809
You need to set the alpha channel in the first image according to the transparency information in the second image. Something like this: Set BufferedImage alpha mask in Java
If you don't want to have any changes in the first image, then you can create a copy/clone of it and work with this copy. Here's how to create a copy of a BufferedImage: How do you clone a BufferedImage
Upvotes: 2