0
나는 다음과 같은 코드를 사용하여 JPEG에 GLSurfaceView를 렌더링하기 위해 노력하고있어 안드로이드는 OpenGL ES 1.0 서피스 뷰 SurfaceView 렌더링 :JPEG
FileOutputStream image = FileIO.getInstance().writeFile("racesow/test" + this.frameNum +" .jpg"); // creates an ouputstream in external storage directory
Bitmap bitmap = Bitmap.createBitmap(640, 480, Bitmap.Config.ARGB_8888);
Canvas canvas = new Canvas(bitmap);
this.game.glView.draw(canvas); // glView is the GLSurfaceView
bitmap.compress(Bitmap.CompressFormat.JPEG, 85, image);
image.flush();
image.close();
나는 전체 장면 후이 코드를 실행하고있어하면 서피스 뷰 SurfaceView에 렌더링 된 . 이미지는 생성되지만 모두 검은 색입니다. 어떤 아이디어?