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
flybirdtt
Posts: 153
Registered: ‎09-03-2009
My Device: Not Specified

Re: How to show image transparent part

I also override the 

protected void applyTheme(){}

you can see the code i attached .

But i don't know how to override this method.

Just type like this:

protected void applyTheme(){}

???

Developer
flybirdtt
Posts: 153
Registered: ‎09-03-2009
My Device: Not Specified

Re: How to show image transparent part

I use the last development vesion.  Vesion 5.0

May be this is the version problem. Can not support the transparent image?

So confused.   Becasue i have so many images with transparent  border.

Developer
flybirdtt
Posts: 153
Registered: ‎09-03-2009
My Device: Not Specified

Re: How to show image transparent part

If i use this image to create a BitmapField, This BitmalField show the transparent part correctly.

So just useGraphics.drawBitmap can not show the transparent part correctly. It always get the white border

How to void this problem?

Pls help me

Thanks very much

Developer
flybirdtt
Posts: 153
Registered: ‎09-03-2009
My Device: Not Specified

Re: How to show image transparent part

No one will help me ?

So confuse .

How to get that ?

Pls

 

Developer
flybirdtt
Posts: 153
Registered: ‎09-03-2009
My Device: Not Specified

Re: How to show image transparent part

Nobody have solutions? Or only me get this problem?

........ be at stand  here

BlackBerry Development Advisor
MSohm
Posts: 14,757
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: How to show image transparent part

Remove your call to graphics.clear.  This draws the entire area with the background colour (default being white).  If you don't call clear, whatever is behind the manager will bleed through and you'll get the transparent effect you are looking for.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
flybirdtt
Posts: 153
Registered: ‎09-03-2009
My Device: Not Specified

Re: How to show image transparent part

Thanks. It's ok now.