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: 20
Registered: ‎05-17-2012
My Device: have no device
My Carrier: KievStar
Accepted Solution

Can i make scale to bitmap or bitmapField?


Bitmap bitmap = Bitmap.getBitmapResource(fileName);
BitmapField bitmapField = new BitmapField(bitmap, BitmapField.FIELD_HCENTER);


I Have Bittmap and i need scale it... can you hel me please?

Posts: 543
Registered: ‎12-23-2010
My Device: Z10
My Carrier: Airtel

Re: Can i make scale to bitmap or bitmapField?

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

Re: Can i make scale to bitmap or bitmapField?

you can find a lot of threads about that by entering "scale" into the search box, give it a try.
first result: http://supportforums.blackberry.com/t5/Java-Development/Rotate-and-scale-bitmaps/ta-p/492524

also check http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/system/EncodedImage.html#scale... int)
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