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
Contributor
Posts: 29
Registered: ‎09-07-2012
My Device: 9900
My Carrier: Airtel

Create or draw an image with round corners

Hi

 

How can i convert or draw the square image as rounded corner image in blackberry?

 

I need the image like below

 

chat-screen_45.png

Developer
Posts: 19,628
Registered: ‎07-14-2008
My Device: Not Specified

Re: Create or draw an image with round corners

I would recommand that you use a thrid party tool, and supply the BB with a rounded corner image. 

 

Is there a specific reason why this has to be done on the BB?

Contributor
Posts: 29
Registered: ‎09-07-2012
My Device: 9900
My Carrier: Airtel

Re: Create or draw an image with round corners

Can you give me the any specific link for that?

Developer
Posts: 19,628
Registered: ‎07-14-2008
My Device: Not Specified

Re: Create or draw an image with round corners

For a third party tool?  I mean something like Photoshop, or similar.

Contributor
Posts: 29
Registered: ‎09-07-2012
My Device: 9900
My Carrier: Airtel

Re: Create or draw an image with round corners

I have downloaded the image from server in my app which is a square image and i need to convert that image as rounded corner image. how can i achieve this ?

Developer
Posts: 19,628
Registered: ‎07-14-2008
My Device: Not Specified

Re: Create or draw an image with round corners

Like I said, the first thing you should try to do is get the image as a round corner image.  The BB is not the appropriate place to be doing image manipulation.  Do it once on the server, have the server deliver a useful image to the BB, job done.  If you do it after the download, then every BB has to do it every time - which is tricky for it to do and will slow it down. 

 

So talk to your server people about doing it once, on the Server. 

Contributor
Posts: 29
Registered: ‎09-07-2012
My Device: 9900
My Carrier: Airtel

Re: Create or draw an image with round corners

okay thanks..

Developer
Posts: 19,628
Registered: ‎07-14-2008
My Device: Not Specified

Re: Create or draw an image with round corners

FYI, I can think of a number of ways you could do this on the BB, but none of them are pretty and they would all probably result in jagged edges. 

Contributor
Posts: 45
Registered: ‎10-25-2012
My Device: 8520
My Carrier: ss

Re: Create or draw an image with round corners

How  did you round image using code . If you got solution please help.

New Developer
Posts: 9
Registered: ‎10-25-2009
My Device: Not Specified

Re: Create or draw an image with round corners