2

I am having problem here with bitmaps..I want to remove the black background that 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.

Lucifer
  • 29,392
  • 25
  • 90
  • 143
tek3
  • 2,095
  • 2
  • 20
  • 50

2 Answers2

6

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.

Esteban Küber
  • 36,388
  • 15
  • 79
  • 97
2

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

Lucifer
  • 29,392
  • 25
  • 90
  • 143
Prabhu R
  • 13,836
  • 21
  • 78
  • 112