0
     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.

pykid
  • 1
  • 1
  • https://stackoverflow.com/questions/11539139/example-of-camera-preview-using-surfacetexture-in-android – Michael Sep 20 '17 at 10:06
  • Do you want to get an image from `mTextureView` or what? It's not clear what do you want, I see a `mTextureView` and bitmap decoding code, they're not related as I see – Wackaloon Sep 20 '17 at 17:14

0 Answers0