Exemple #1
0
 public override void OnOpened(CameraDevice camera)
 {
     fragment.CameraDevice = camera;
     fragment.StartPreview();
     fragment.CameraOpenCloseLock.Release();
     if (null != fragment.TextureView)
     {
         fragment.ConfigureTransform(fragment.TextureView.Width, fragment.TextureView.Height);
     }
 }
Exemple #2
0
 public void OnSurfaceTextureSizeChanged(SurfaceTexture surfaceTexture, int width, int height)
 {
     fragment.ConfigureTransform(width, height);
 }