Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Posts: 1
Registered: ‎12-03-2012
My Device: Simulator
My Carrier: Simulator
Accepted Solution

method setARGB question

[ Edited ]

Hi all,


Please consider code:


int bW = 600;

int bH = 600;

Bitmap outputBitmap = new Bitmap(bW, bH);
int[] outputBitmapData = new int[bW * bH];


Arrays.fill(outputBitmapData, Color.WHITE);

outputBitmap.setARGB(outputBitmapData, 0, outputBitmap.getWidth(), 0, 0, outputBitmap.getWidth(), outputBitmap.getHeight());


int[] argbData = new int[bW * bH];
outputBitmap.getARGB(argbData, 0, bW, 0, 0, bW, bH);


After last line argbData is filled with zeros instead of 16777215 whitch is constant value of Color.WHITE, why?

OS version 7.


This code works fine on OS5 and OS6.


Thx, for replys



Best regards,





Posts: 17,025
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: method setARGB question

welcome to the support forums.

looks like a bug to me. not much you can do, post it on JIRA, but most of RIMs bughunters are all crawling the vast graslands of BB10, so maybe there won't ever be a fix for it.
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter