(int x,int y,int width,int height,int arcWidth,int arcHeight),线框,最后两个宽高是圆角弧的横向直径和纵向直径;fillRoundRect(int...画圆弧:drawArc(int x,int y,int width,int height,int startAngle,int arcAngle),画椭圆一部分的圆弧线,椭圆中心时它的外接矩形的中心,外接矩形左上角坐标为...drawImage(Image image,int x,int y)
擦除矩形块:clearREct(int x,int y,int width,int height),当需要在一个着色图形中有一个空缺的矩形时...以下代码实现了在一个圆中擦除了一个矩形块
g.setColor(Color.blue);
g.fillOval(50,50,100,100);g.clearRect(70,70,40,55);
限定作图显示区域:clipRect...(int x,int y,int width,int height),用一个矩形表示图形的显示区域,超出部分不显示,多个限制区有覆盖时,得到交集区域
g.clipRect(0,0,100,50);g.clipRect