gcImage.setForeground(Colors.blue);
int angle = (percent * 360) / 100;
gcImage.setBackground(Colors.blues[Colors.BLUES_MIDDARK]);
gcImage.fillArc(0,0,width,height,90-angle,angle);
gcImage.drawOval(0 , 0 , width-1, height-1);
gcImage.dispose();
return image;
}
public static void drawPie(GC gc,int x, int y,int width,int height,int percent) {
Color background = gc.getBackground();