How can I can a transparent

by mudit » Sat, 03 Oct 2009 16:30:18 GMT


Sponsored Links
 Hi All,

I need to create a bitmap with transparent background using an
inputstream.

BitmapFactory.Options opt = new BitmapFactory.Options();
opt.inPreferredConfig = Bitmap.Config.ALPHA_8;
bitmap = BitmapFactory.decodeStream(is, null, opt);

But my image is always rendered with black background. The original
image has a transparent background.

Please help.
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. 'emulator-tcp-5555': Local file doesn't exist with Eclipse

hi,

I just recently experienced a very strange bug. I develop on android
for 2 month now and I never had this problem before.

I'm not able to upload any apks to the emulator anymore, eclipse
console says:
[2008-05-07 17:03:33 - android] Android Launch!
[2008-05-07 17:03:33 - android] adb is running normally.
[2008-05-07 17:03:33 - android] Launching: foo.bar.
[2008-05-07 17:03:33 - android] Automatic Target Mode: reuse existing
emulator.
[2008-05-07 17:03:33 - android] Pushing android.apk to /data/app on
device 'emulator-tcp-5555'
[2008-05-07 17:03:33 - android] Failed to install android.apk on
'emulator-tcp-5555': Local file doesn't exist.

altough when I enter
adb devices
in the shell it lists:

List of devices attached
1       emulator-tcp-5555       device  0

I'm also able to login via adb shell...

It's really persistent, I deleted the local image of android, no
change.

Did you experience a similar problem yet?

Thanks,
Patrick
--~--~---------~--~----~------------~-------~--~----~

2. THE PSYCHODROID

* THE PSYCHODROID

*

MAY 09 2008. EXT. MARY'S OFFICE - (DAY)

The Phone rings. Mary picks up the phone and listens. We see
Mary's face lighting up. Mary couldn't stop grinning. She had
heard some great news. She throws in some kisses on the phone,
pumps her{*filter*}and looks for something in her drawer. Mary takes
her bankbook out and gets out fast laughing. We can only feel
she has won the lottery. In fact she has won the Google Android Developer
Challenge Phase I that was announced today. What poor Mary doesn't know is,
how this would be fatal for her.

Read more...

 http://www.***.com/ 

-- 
take care,
Muthu Ramadoss.

 http://www.***.com/ 
find stuff closer.

--~--~---------~--~----~------------~-------~--~----~

3. how to create a widget dynamically after setContenView

4. Style text in color problem

5. WiMax Deal the Biggest Victory for Android Yet?

6. cannt scroll imageview right and down

7. Device Proposal