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
Trusted Contributor
user17
Posts: 145
Registered: ‎01-23-2012
My Device: 9300

image transparency

Hi All,

 

 

               How to do button image transparent?

 

 

Thanks

 

 

 

Developer
simon_hain
Posts: 16,351
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: image transparency

a button never has an image, as the buttonfield class does not support this.
you can use an image as a button (functionality wise).
to add transparency you need an image format that supports it (png, gif etc).
you can modify the picture on the PC.
on the device you can use http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/ui/Graphics.html#setGlobalAlph... to control the alphachannel, but that is probably too low level for you?
----------------------------------------------------------
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