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
Developer
Posts: 68
Registered: ‎09-04-2008
My Device: Not Specified

Re: Solution for properly resizing transparent bitmaps

Thank you very much Patchou. good stuff! Smiley Happy

Developer
Posts: 1,638
Registered: ‎07-14-2008
My Device: Z10
My Carrier: Fido

Re: Solution for properly resizing transparent bitmaps

the code works great resize big image to small.

 

I found that if I want to resize the image bigger than the original image the code does not work.

 

can anyone vertify this?

 

Contributor
Posts: 11
Registered: ‎10-02-2010
My Device: Curve 8900
My Carrier: Rogers

Re: Solution for properly resizing transparent bitmaps

I just tried enlarging a picture loaded from a transparent PNG file and it worked fine using the three aspect ratio modes. Can you provide a sample of code with the file you're using? Thanks.

Highlighted
New Contributor
Posts: 9
Registered: ‎06-08-2011
My Device: Q10
My Carrier: Vodafone NL

Re: Solution for properly resizing transparent bitmaps

Awesome code respect!

Developer
Posts: 455
Registered: ‎03-04-2011
My Device: Paper cup

Re: Solution for properly resizing transparent bitmaps

you can speed that up a little by counting down instead of up, and declaring all variables outside the loops instead of in every iteration.
Contributor
Posts: 13
Registered: ‎06-14-2011
My Device: -
My Carrier: -

Re: Solution for properly resizing transparent bitmaps

Thank you very much!!! awesome code Smiley Very Happy
New Contributor
Posts: 2
Registered: ‎05-16-2012
My Device: 9300
My Carrier: XL

Re: Solution for properly resizing transparent bitmaps

Thank you so much for this great code! Really helps me a lot!

Regular Contributor
Posts: 61
Registered: ‎08-25-2010
My Device: Torch 9800
My Carrier: O2

Re: Solution for properly resizing transparent bitmaps

Hello

 

A very big thank you for this! I've been looking for a solution like this for ages. You have saved me (and I'm sure countless other developers) many hours trying to figure a way around this problem.

 

Mods - please sticky this or make a kb with the author referenced!