mTextureView = (TextureView) findViewById(R.id.textureView);
BitmapFactory.Options options = new BitmapFactory.Options();
options.inMutable=true;
Bitmap myBitmap = BitmapFactory.decodeResource(
getApplicationContext().getResources(),
R.drawable.test1,
options
);
This is the example code. I want to use my mTextureView which is holding a camera preview, Instead of test1.jpg file. Please help me with this. I'm desperate.