Maybe change your canvas constructor to this? Canvas c = new Canvas (cameraBitmap);
Then, draw foreground on canvas. On Tuesday, July 31, 2012 7:57:47 AM UTC-5, Numair Qadir wrote: > > I want to merge two bitmaps, here is my code > > / / Camera arg conversion to Bitmap > Bitmap cameraBitmap = BitmapFactory.decodeByteArray (arg0, 0, > arg0.length); > > / / FrameLayout to Bitmap > FrameLayout mainLayout = (FrameLayout) findViewById (R.id.frame); > Foreground = Bitmap.createBitmap Bitmap (mainLayout.getWidth (), > mainLayout.getHeight (), Bitmap.Config.ARGB_8888); > > Canvas c = new Canvas (foreground); > mainLayout.draw (c); > > Should Become The camera image background, and foreground as top image. I've > tried from > http://www.jondev.net/articles/Combining_2_Images_in_Android_using_Canvas) > but it did not help me. Any idea.? Thanks > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

