Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
JChow
Posts: 54
Registered: 09-04-2008

Re: Solution for properly resizing transparent bitmaps

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

Please use plain text.
Developer
smiley
Posts: 784
Registered: 07-14-2008

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 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: 4
Registered: 06-08-2011
My Carrier: Vodafone NL

Re: Solution for properly resizing transparent bitmaps

Awesome code respect!

Please use plain text.
Developer
silver20
Posts: 373
Registered: 03-04-2011

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.
New Contributor
gtirado
Posts: 3
Registered: 06-14-2011
My Carrier: -

Re: Solution for properly resizing transparent bitmaps

Thank you very much!!! awesome code :smileyvery-happy:
Please use plain text.