[android-developers] Re: Android append 2 image source files

2009-09-24 Thread Streets Of Boston
Or you could draw both images (bitmapA and bitmapB loaded from the 2 original jpegs) onto a canvas that is backed by another empty bitmap (bitmapC). Then you call compress(...) on bitmapC to save it to a jpeg. Both Justin's and my method will have some image degradation, depending on how you sav

[android-developers] Re: Android append 2 image source files

2009-09-24 Thread Justin (Google Employee)
The general algorithm would be to load both images into Bitmaps, then get the pixels of each Bitmap. Determine the image size you need to combine the two and create a new Bitmap with these dimensions. Then use setPixels to write the combined image into the Bitmap object and finally write the combi

[android-developers] Re: Android append 2 image source files

2009-09-24 Thread Streets Of Boston
What is 'append'? Two images stitched together? One on the right, the other on the left? Or one above the other? Or one merged inside the other (overlay) What if they are of different size? You have to be more specific about what you ask :) On Sep 24, 4:51 am, Isuru danagalle wrote: > Hi All,