Smit Patel
Smit Patel

Reputation: 1194

How to make curve and rounded image in Blackberry 10 native?

I am trying to curve and round the image but I am not able to do it perfectly. I have tried to create an .amd file and set it as the background but this is not working perfectly. Is there any other way through which I can make the image round as well as curved on a Blackberry - 10.?

I am getting an image as a response from the server like below:

enter image description here

I want something like the following images.Images are not static they are dynamic it's comes from web service.

enter image description here
enter image description here

I have checked the links from the BlackBerry forums also but did not get a proper solution. If anyone knows then please let me know.

Upvotes: 0

Views: 61

Answers (1)

Richard
Richard

Reputation: 8920

To put rounded corners on an image I would use the the Nine Slice feature described in the API. Using a drawing program crreate a small square example of the frame. Using the nine slice system to scale it to the size of your image and lay it over your image.

The same procedure will work for cicularly vignetting images. Depending on howmany sizes you want you may have to draw them on the fly or have several sizes and scale to other sizes.

Upvotes: 1

Related Questions