Categories: Java | Java ME | How To | Code Examples | Graphics
This page was last modified 08:31, 25 September 2007.
How to draw an ARC in canvas in Java ME
From Forum Nokia Wiki
Following is the paint method of a canvas class which helps to draw an arc
protected void paint(Graphics graphics) { graphics.setColor(255,255,255); graphics.fillRect(0, 0, getWidth(), getHeight()); graphics.setColor(255,0,0); graphics.drawArc(0, 0, getWidth(), getHeight(), 180, 180); }
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Canvas size | salmira | Mobile Java General | 2 | 2003-11-20 14:11 |
| Updating a canvas concurrently on a 3650 phone | jrbayliss | Mobile Java Media (Graphics & Sounds) | 0 | 2003-05-23 13:14 |
| Is there anyway to draw a bitmap/text outside the Draw container? | cabezonxdg | General Symbian C++ | 2 | 2007-04-04 02:11 |
| how to change the size of 'text' on canvas? | anyko38155285 | Python | 14 | 2008-07-01 12:33 |
| Exit-command disappearing | sarparan | Mobile Java General | 2 | 2007-11-23 15:31 |
