Hi Everyone,
I want to combine multiple images over an overlay image, I have found some tutorials merging images into one but they are displaying it into ImageView(result to low quality of output image), what I want is to merge images without displaying it to the ImageView, only using with the pathfile from storage so that the quality is good.
I already done this in c#, but I don't know how to do it in Android Studio.
What I have tried:
Below is the code that I used in c#. Hoping anyone can help me how to achieve this in Android Studio. Thank you in advance.
Image img = Image.FromFile(locationToOverlay + @"\overlay.png");
Graphics g = Graphics.FromImage(img);
g.DrawImage(Image.FromFile(FirstImageFile), 2267, 180, 1985, 1317;
g.DrawImage(Image.FromFile(SecondImageFile), 1424, 1786, 1368, 907;
g.DrawImage(Image.FromFile(ThirdImageFile), 2900, 1779, 1368, 902;
g.DrawImage(Image.FromFile(locationToOverlay + @"\overlay.png"), new Point(0, 0));
g.Dispose();
img.Save("output.jpg", ImageFormat.Jpeg);
img.Dispose();