I have stored in my android device (for example in directory Example) two jpeg file 1.jpg and 2.jpg of dimension 64x64. I want to merge (put one near the other) these two files and save in the same directory the resulting file 3.jpg of dimension 128x64. Which is the easiest way to do this? I tried to find some examples, but I have not find the solution. Thanks in advance!
Asked
Active
Viewed 427 times
1 Answers
0
One way is to create a Canvas of the appropriate size and draw each bitmap onto it in the desired configuration.
Edit: previous answer.
Edit: To load an image from file storage into a Bitmap, you can use BitmapFactory.
-
OK thanks. I have jpg instead of bitmap and I do not know how to read them in memmory before merging. – user3318590 Apr 10 '14 at 05:36
-
OK thanks, I think I'm able to do this. I'll try. At moment I can consider the answer completed. – user3318590 Apr 11 '14 at 05:45