How to save bitmap from GLSurfaceView (Only bitmap, not whole texture)
I am using this code to give multiple effect on bitmap that is on GlSurfaceView. apply-effects-on-image-using-effects Now, I want to save the bitmap. They have given the code to save the bitmap but with that, whole GlSurfaceView is going to be saved as bitmap image. Instead I want to save only bitmap area to save as Image. There is method that takes pixels and make bitmap from that and also make image. e.g.: public Bitmap takeScreenshot(GL10 mGL) { final int mWidth = mEffectView.getWidth(); final int mHeight = mEffectView.getHeight(); IntBuffer ib = IntBuffer.allocate(mWidth * mHeight);