还未测试不知道能不能用 Bitmap bitmap = Bitmap.createBitmap(getWidth(), getHeight(), Bitmap.Config.ARGB_8888); Canvas bitCanvas = new Canvas(bitmap); surfaceview.doDraw(bitCanvas);