Welcome!

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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
nnx
Visitor
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,

 

nnx

 

 

Highlighted
Developer
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