Мне нужно зафиксировать образ GLSurfaceView
в определенный момент времени. У меня есть следующий код:
relative.setDrawingCacheEnabled(true);
screenshot = Bitmap.createBitmap(relative.getDrawingCache());
relative.setDrawingCacheEnabled(false);
Log.v(TAG, "Screenshot height: " + screenshot.getHeight());
image.setImageBitmap(screenshot);
GLSurfaceView
содержится в RelativeLayout
, но я также пытаюсь использовать его с помощью GLSurfaceView
, чтобы попытаться захватить изображение. С этим я думаю, что экран захватывает прозрачное изображение, т.е. Ничего нет. Любая помощь будет оценена.