COCOS 2D screen shot is black in Android
问题 I am using the following code. The image is saved but it is BLACK. Please see my code and tell me where I am doing wrong. I am using this code in the Menu. case R.id.id_menu_Save: Bitmap bmp = SavePixels(0, 0, 800, 400, CCDirector.sharedDirector().gl); File file = new File("/sdcard/test.jpg"); try { file.createNewFile(); FileOutputStream fos = new FileOutputStream(file); bmp.compress(CompressFormat.JPEG, 100, fos); Toast.makeText(getApplicationContext(), "Image Saved", 0).show(); Log.i("Menu