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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to