Draw a circle in cascades

Hi all

I want to just draw a circle color and restores the perception of the image on this circle.

nothing complicated.

Is it possible, that I pass the nut foroum found nothing concrete.

Help, please!

Concerning

Your OP said you did...

Charuta_Rajopadhye wrote:

I want to just draw a circle color and restores the perception the image on this circle.

nothing complicated.

You can draw a circle using the graphics libraries and a ForeignWindow...

http://developer.BlackBerry.com/native/documentation/Cascades/graphics_multimedia/opengl_es/using_un...

Tags: BlackBerry Developers

Similar Questions

  • Draw the circle on MapView

    Hi all.

    I am quite new to the development of the Cascades.

    I would like to know if it is possible to trace a circle on a plan, given a Point and a RADIUS.

    I searched a bit on the doc, but I not only found ways to draw polygons from a set of coordinates.

    IIRC the fact maps app exactly that, show GPS accuracy of the signal (IE put a circle around you on the map to show the accuracy of the coordinates).

    Thank you very much, greetings

    Thanks BBSJdev, but I need an overlay following cards (and with a dynamic dimension) and not static.

    In any case, I found a nice way to draw a circle-layer on the mapview. Here is the code:

    It is an improved version of the solution that someone else posted on this forum some time ago (which did not perfectly, as she draws an elypse and not a circle). I can't find this post now, in any case I would like to thank the user who wrote this snippet.

    Here is the code:

    void ApplicationUI::drawCircle(double lon, double lat, double radius) {    MapView *mv = root->findChild("mapView");    DataProvider *dp = mv->mapData()->defaultProvider();
    
        // convert radius meters to latitude width    double latr = radius / 111412.84; // this is the number of meters per degree
    
        // with longitude it's a bit more complicated, since a degree of longitude 's length    // is not constant (unfortunately the earth is not flat)    int a = 6371000; // earth radius in meters    double rad_lat = 0.0174532925 * lat; // convert latitude from degrees to radiants    double _lr = ((M_PI / 180) * a * cosf(rad_lat)); // length of a degree of longitude in meters    double lonr = radius / _lr;    qDebug() << "lonr = " << lonr << " ; _lr = " << _lr << " ; latr = " << latr << " ; lat = " << lat;
    
        GeoPolygon* result = new GeoPolygon;    Polyline line;    const int numOfSeg = 36;    for ( int i = 0; i < numOfSeg; i++ ) {        double theta = 2.0f * 3.1415926f * float( i ) / float( numOfSeg );        double x = lonr * cosf( theta );        double y = latr * sinf( theta );        line.append( Coordinate( y + lat, x + lon ) );    }
    
        result->setOuterBoundary( line );    result->setId("id-circle");    mv->mapData()->defaultProvider()->add(result);
    
    }
    
  • Draw a circle in the main screen?

    Hi guys,.

    Pretty quick here.

    I'm looking to draw a circle on the main screen of a phone application I created.

    So far, on the main screen, I attracted 9 rectangles. But I don't want on a keypress event

    to paint on top of these rectangles of my circle.

    I used java before doing this operation using repaint but don't know how

    Repaint/discount so I can shoot an already drawn form coming onload.

    Darren

    you add the drawCircle in the paint method RESP. the drawBoard method, simply add a condition that you can modify.
    You can issue a repaint with invalidate().

  • Draw the circle with color gradient

    Hi all

    Someone knows how to use graphics to draw a circle with color gradient?

    Thanks for help

    Here is a very simple code that should work.

    //xc = x center
    //yc = y center
    //
    //  Circle diagram
    //           (xc-r),(yc-r){col2}  xc,(yc-r){col3) (xc+r),(yc-r){col4}
    //           (xc-r), yc   {col1}  [xc, yc]        (xc+r),yc    {col5}
    //           (xc-r),(yc+r){col8}  xc,(yc+r){col7} (xc+r),(yc+r){col6} 
    
    int [] xpts = { (xc-r), (xc-r), xc, (xc+r), (xc+r), (xc+r), xc, (xc-r) };
    int [] ypts = { yc, (yc-r), (yc-r), (yc-r), yc, (yc+r), (yc+r), (yc+r) };
    byte [] types = { Graphics.CURVEDPATH_END_POINT,
                      Graphics.CURVEDPATH_QUADRATIC_BEZIER_CONTROL_POINT,
                      Graphics.CURVEDPATH_END_POINT,
                      Graphics.CURVEDPATH_QUADRATIC_BEZIER_CONTROL_POINT,
                      Graphics.CURVEDPATH_END_POINT,
                      Graphics.CURVEDPATH_QUADRATIC_BEZIER_CONTROL_POINT,
                      Graphics.CURVEDPATH_END_POINT,
                      Graphics.CURVEDPATH_QUADRATIC_BEZIER_CONTROL_POINT };
    int [] colors = { col1, col2, col3, col4, col5, col6, col7, col8 };
    
    graphics.drawShadedPath(xpts,ypts,types,colors,null);
    
  • How can I add/draw a circle in DC Pro?

    How to draw or add a circle in Acrobat Por DC?  The comments section is there but has no options to choose from-nothing, just empty.  It was so simple in previous versions.  Is there some sort of add-on that I need to download?  Thank you.

    Hi jrgspyder ,

    To draw or add a circle, you can access the feedback tool and select this option:

    You can select the "Oval" option after you click this option and draw a circle according to your need on the PDF file.

    There is no add on for this.

    Let us know if that helps.

    Concerning

    Sarojini

  • How to draw concentric circles using shapes in illustrator drawing

    I am on the iPad and try to draw concentric circles from a diameter of 1 cm

    the circle of form Adobe seems to have that one size.

    am I missing something?

    Hello Gita,

    The circles in the menu form from raffle can be resized.

    When you click a shape, Slide Touch open with her.

    Tap one finger (concentric circles) guides to get the shape you want to change (circles, squares and triangles).

    Once you see the shape you want, it can be reduced or enlarged by placing your fingers or the other side of the contour and making dragging/pinch.

    You can 'stamp' shape on the canvas by double-clicking on the contour (will be described with all that brush you chose).

    If you want to change a circle to an oval, when you have the size you want, now pressure on the main lines. Depending on where the sketch you press you will see either a vertical or a horizontal line in the middle of the form. As soon as you see who... Drag. Give it a try.

    Hope that helps.

    Sue.

  • How to draw a circle with tabs around it

    Hey, I need to draw a circle with tabs around it as follows:

    circle.png

    I got tired of drawing of a rooster, but I need the inside edges as State not tilted. These look like rectangles with curved roofs. No idea how I can do this? If possible to create an individual tab first and then get the right angle adjust the circle? Pointers on this would be really appreciated! Thank you

    Just do a single tab with the corners that intertwine with the circle. Turn on benchmarks commented to the corners align with the edge of the circle. Make sure that the two forms are horizontally centered.

    Then select the tool rotation and option-click on the center point of the circle. Smart Guides will break the pointer to the center of the circle. Enter your angle of 60 °, and then click "copy".

    With the shape of the tab selected, select transform again four times.

    Select all tabs and make a shape composed of them (command-8). Make a copy (command-C). Send the tabs on the front of the stack (Command - Shift)]-. Click on less prominent in the Pathfinder palette. That should leave you with this:

    Finally, paste a copy of the tabs in place (command-F) to get this:

  • How to draw a circle in photoshop using vbs

    How to draw a circle in photoshop using script, do not pathitems

    You don't want to use a shape layer? You can use scriptlistener to record make a circle for it, then put in a variable for values. You can also use scriptlistener to make a round selection and then caress than. You could also do a bunch of small round pieces that you can fill out and then use a little math to place a series of them in a circle.

  • I have problems, adding comments using Adobe reader DC on my pro 3 surface. I can select the circle for example, but when I try to draw the circle nothing happens and the screen just scrolls in the direction I move the pointer?

    I have problems, adding comments using Adobe reader DC on my pro 3 surface. I can select the circle for example, but when I try to draw the circle nothing happens and the screen just scrolls in the direction I move the pointer?

    Hey paulc6148125,

    Please try the mode settings different button in Adobe Acrobat Reader DC-> leModifiermenu-> preferences-> general categories.

    Kind regards

    Nicos

  • How to draw a circle in the MUSE?

    How to draw a circle in the MUSE? Shift & rectangle (as in InDesign) tool does not work.

    obcomm - use the Rectangle tool to draw a carrΘ. Click on the options of rounding in the control toolbar, and then increase the size until you have a circle.

    David

  • How to draw a circle colored in cs4?

    Hello

    I'm trying to create a colorful circle but every time Im filling in the color circle is not correctly filled. It's like becoming incandescent on the edges, something that I don't want. Could you please help me how to complete correctly. I guess it's a parameter should be set, but I can't. Thank you

    circle.png

    To draw a circle, hold down the SHIFT key and use the brand ellipcial tool, make sure to feather is 0 pixels.  Otherwise, you will get the rounded edges.  Then use the bucket fill tool.

  • How to draw a circle? duh

    How to draw a circle in photoshop elements 8 on a photograph highlighting one feature on the photo that I would like to point out to someone?

    I opened the photo, and it is the only layer.

    I can create as many layers as I want. So I create a.

    When the "edit" tab is active, there is no ellipse tool.

    When I click on the "create" tab, then the ellipse tool is present, but the layers box disappeared.

    When I click on the ellipse tool and draw my circle, he draws a circle solid obscuring what I would like to highlight. "Selection of stroke [Preview]" in the menu editing is greyed out.

    what Miss me?

    Yes, exactly the same thing to post-secondary studies. If you want a perfect circle, hold down SHIFT, and drag with the elliptical marquee, then edit > stroke (outline) selection.

  • How to draw a circle in the exact size

    Hello

    How to draw a circle in Ps CS4 to 202mm exactly?

    I know that the tool Elipise > shift + click - Move (for a selection of perfect circle), but not how to type in an exact diameter - is there a function for this in CS4?

    In fact, I'd rather draw the circle in a vector path, if possible.

    I Illustraor, but no idea how to get the path more to the PS...

    Thanks in advance.

    Yes, using the ellipse defined for traces.

    Where is said of fixed size, just type 202mm in each box.

    MTSTUNER

  • How can I programmatically draw new circles on an image control

    Hi, I'm fairly new LV and programming in general. I'm creating a program to get better. In this program, I have balls bouncing around on an image control. I use a table to keep track of the ball position (x, y) and the other to follow their speed. I want that whenever a ball reaches the border of the image, it splits into 2 balls. My problem is that I can't find a way to programmatically add these new balls for each draw circle screw must be serialy connected and then drawn on the image. What Miss me?

    You need to iterate over your table of bullets.  This means that the use of automatic indexation.  Now, you have no reason of wire with a value of N in the loop For.  And wiring of this value to the array Index function gives you invalid data it's either nothing, or the ball even if it exists in the table.

    I cleaned up a few other things in your code.

    1 cancel the function.  No need to multiply by-1.

    An array of Index 2.  It is expandable.  Drag the bottom border down.

    Your next bit of code to add would be where you decide to add another ball and put it in the Position and speed tables.

  • draw a circle

    Hello

    I can't draw a full circle. Can anyone help? I try to use graphics.fillEllipse (...), but I can't understand what are the parameters of output a circle.

    Thank you!

    Assuming that you have x, y for the center of the circle, and r for RADIUS.

    The method takes 3 points, C, P and Q.

    Center (x, y) value C.

    Offset P of the centre on the x axis (x + r, y).

    Off-set Q of the Center along the y-axis (x, y + r).

    All together it should look like this:

    g.drawEclipse (x, y, x + r, y, x, y + r, 0, 360);

    Cheers, Barak.

Maybe you are looking for