开发者

Transparent bitmap

开发者 https://www.devze.com 2022-12-08 03:34 出处:网络
I am having problem here with bitmaps..I want to remove the black background th开发者_如何学JAVAat my bitmap is having.

I am having problem here with bitmaps..I want to remove the black background th开发者_如何学JAVAat my bitmap is having.

I am creating bitmap bitmap from byte array..and then setting the bitmap in BitMapField..but the image shown has a black background.


Could you post some code? Without some specific code we can't really help you.

If you aren't yet, you should be using createAlpha from the Bitmap class.

Further explanation and help for common problems can be found in the Blackberry Support Forum.


Use this constructor to create the Bitmap - Bitmap(int type, int width, int height) where type should be Bitmap.ALPHA_BITDEPTH_8BPP

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号