View Single Post
Old January 13th, 2010, 03:51 PM   #2 (permalink)
KeithG
Member
 
Join Date: Nov 2009
Posts: 103
 
Device(s): Droid
Carrier: Not Provided

Thanks: 0
Thanked 4 Times in 4 Posts
Default

Quote:
Originally Posted by android88 View Post
Code:
        Bitmap bitmap = Bitmap.createBitmap(width, height, Config.RGB_565);
        Canvas c = new Canvas(bitmap);
        c.drawColor(Color.TRANSPARENT);
your bitmap is opaque probably.

createBitmap()

The description about the Bitmap.Config is different is different from the factory call your using.

Quote:
Code:
config	The bitmap config to create. If the config does not support per-pixel
                alpha  (e.g. RGB_565), then the alpha bytes in the colors[] will be
                ignored (assumed to be FF)
You may need to use a different Config. Probably one that supports alpha per pixel
KeithG is offline  
Reply With Quote