-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to capture full bitmap from after applied effect not draw to GLSurfaceView. #101
Comments
And where this function is placed in project? |
this function I put in the class Renderer. |
Sorry, but i dont know where getBitmapWithFilter and createBitmap should be use! Could you show me that? Thank you very much! |
Thank you for a reply.
|
// draw frame to texture |
Thank you so much! brs, Nam. |
How to capture full bitmap after applied effect not draw on GLSurfaceView.
My code
public static Bitmap createBitmap(int width, int height) {
IntBuffer ib = IntBuffer.allocate(width * height);
GLES20.glReadPixels(0, 0, width, height, GLES20.GL_RGBA, GLES20.GL_UNSIGNED_BYTE, ib);
Bitmap result = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
result.copyPixelsFromBuffer(ib);
The text was updated successfully, but these errors were encountered: