//画四个角的代码<br>paint.setColor(frameColor);
canvas.drawRect( 15 + frame.left, 15 + frame.top, 15 + (linewidht + frame.left), 15 + ( 50 + frame.top), paint);
canvas.drawRect( 15 + frame.left, 15 + frame.top, 15 + ( 50 + frame.left), 15 + (linewidht + frame.top), paint);
canvas.drawRect(- 15 + (( 0 - linewidht) + frame.right), 15 + frame.top, - 15 + ( 1 + frame.right), 15 + ( 50 + frame.top), paint);
canvas.drawRect(- 15 + (- 50 + frame.right), 15 + frame.top, - 15 +frame.right, 15 + (linewidht + frame.top), paint);
canvas.drawRect( 15 + frame.left, - 15 + (- 49 + frame.bottom), 15 + (linewidht + frame.left), - 15 + ( 1 + frame.bottom), paint);
canvas.drawRect( 15 + frame.left, - 15 + (( 0 - linewidht) + frame.bottom), 15 + ( 50 + frame.left), - 15 + ( 1 + frame.bottom), paint);
canvas.drawRect(- 15 + (( 0 - linewidht) + frame.right), - 15 + (- 49 + frame.bottom), - 15 + ( 1 + frame.right), - 15 + ( 1 + frame.bottom), paint);
canvas.drawRect(- 15 + (- 50 + frame.right), - 15 + (( 0 - linewidht) + frame.bottom), - 15 + frame.right, - 15 + (linewidht - (linewidht - 1 ) + frame.bottom), paint);
|