SHARE
TWEET

Untitled

a guest Jul 21st, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public void surfaceCreated(SurfaceHolder holder) {
  2.  
  3.         try {
  4.             // set view of surface in cameraview
  5.             Camera.Parameters p = mCamera.getParameters();
  6.  
  7.             p.setPreviewFormat(ImageFormat.YV12);
  8.  
  9.             mCamera.setParameters(p);
  10.             mCamera.setPreviewDisplay(holder);
  11.             mCamera.startPreview();
  12.             }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top