一种是传参数:
rect dstrect = new rect();
canvas canvas = holder.lockcanvas();<br> canvas.getclipbounds(dstrect);
一种没有参数的
dstrect <span style='font-family: "courier new"; color: #000000;'>=</span><span style='font-family: "courier new"; color: #000000;'>canvas.getclipbounds();</span>
此时dstrect 大小为canvas的大小
rect dstrect = new rect();
canvas canvas = holder.lockcanvas();<br> canvas.getclipbounds(dstrect);
一种没有参数的
dstrect <span style='font-family: "courier new"; color: #000000;'>=</span><span style='font-family: "courier new"; color: #000000;'>canvas.getclipbounds();</span>
此时dstrect 大小为canvas的大小