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

Reply
Developer
JChow
Posts: 68
Registered: ‎09-04-2008
My Device: Not Specified

Re: Solution for properly resizing transparent bitmaps

Thank you very much Patchou. good stuff! :smileyhappy:

Please use plain text.
Developer
smiley
Posts: 1,418
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?

 

Please use plain text.
Contributor
Patchou
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.

Please use plain text.
New Contributor
Taxos
Posts: 9
Registered: ‎06-08-2011
My Device: Q10
My Carrier: Vodafone NL

Re: Solution for properly resizing transparent bitmaps

Awesome code respect!

Please use plain text.
Developer
silver20
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.
Please use plain text.
Contributor
gtirado
Posts: 12
Registered: ‎06-14-2011
My Device: -
My Carrier: -

Re: Solution for properly resizing transparent bitmaps

Thank you very much!!! awesome code :smileyvery-happy:
Please use plain text.
New Contributor
cooleve
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!

Please use plain text.
Regular Contributor
meanman
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!

 

Please use plain text.