SurfaceView局部刷新



Canvas canvas = holder.lockCanvas(null);//获取画布   
Paint mPaint = new Paint();   
mPaint.setColor(Color.BLUE);             
canvas.drawRect(new RectF(40,60,80,80), mPaint);   
holder.unlockCanvasAndPost(canvas);//解锁画布,提交画好的图像  

你可能感兴趣的:(SurfaceView局部刷新)