How to draw an ARC in canvas in Java ME
Article Metadata
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);
}


(no comments yet)