×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    May 2003
    Posts
    10

    How to paint circle?

    Hello,

    in Java/C# you can use g.DrawEllipse to draw some kind of circle. How to draw it in J2ME?

  2. #2
    Registered User
    Join Date
    May 2003
    Posts
    39

    here u go

    g.drawArc(x, y,width, height, startAngle, arcAngle);

    x,y,width and height will form a rectangle
    you may draw a circle by circling an arc around the rectangle, for example startAngle should be 0 and arcAngle is 360, then you have yourself a circle.

    If you prefer a filled arc then use
    g.fillArc with the same arguments

    hope that helps

  3. #3
    Registered User
    Join Date
    May 2003
    Posts
    10
    It does. Thank you very much! Didn't know the "0" to "360" part.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×