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

Native Development

Reply
Developer
Charuta_Rajopadhye
Posts: 92
Registered: ‎08-01-2013
My Device: Z10, Q5, Q10
My Carrier: Vodaphone
Accepted Solution

Draw a circle in cascades

Hi all,

 

i want to just draw a circle in in some colour, and reimpose an image on that circle.

nothing fancy.

Is this possible, i did go through the foroum nut found nothing concrete.

Please Help!

 

Regards

Please use plain text.
Developer
BBSJdev
Posts: 6,098
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: Draw a circle in cascades

Strange as this question has been posed a number of times.

 

There are various answers depending on what you really want to do, if you just want your image to appear as a circle then you can overlay an image with a circle with a transparent middle.

 

For something more complex you are looking at using the QPainter class or a 3rd part graphics library.

 


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Please use plain text.
Developer
Charuta_Rajopadhye
Posts: 92
Registered: ‎08-01-2013
My Device: Z10, Q5, Q10
My Carrier: Vodaphone

Re: Draw a circle in cascades

i do not want to use an image, just draw a circle of some color without using an image.

Please use plain text.
Developer
BBSJdev
Posts: 6,098
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: Draw a circle in cascades

Your OP stated that you did...


Charuta_Rajopadhye wrote:

i want to just draw a circle in in some colour, and reimpose an image on that circle.

nothing fancy.


You can draw a circle using one of the graphic libraries and a ForeignWindow...

http://developer.blackberry.com/native/documentation/cascades/graphics_multimedia/opengl_es/using_un...


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Please use plain text.