[android-developers] Merge Images with Transparency

2010-04-14 Thread polyclefsoftware
I'm trying to merge two bitmaps, while the one on top has
transparency. I'm using something like this:

int[] srcPixels = new int[3600];
bitmapWithTransparency.getPixels(srcPixels, 0, 60, 0, 0, 60, 60);
backgroundBitmap.setPixels(srcPixels, 0, 60, 0, 0, 60, 60);

I've tried various image formats and various bitmap configurations,
and I always get black in the resulting merged image where I would
like transparency.

Any help is appreciated.

-- 
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

To unsubscribe, reply using remove me as the subject.


[android-developers] merge images

2009-09-15 Thread chan

can you give some sample codes for merge several images into a one
single image..
Thank you advance
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---