locked
Universal App Camera

    Question

  • hi i am just used CameraCaptureUI its working fine .

    this code run then start the camera and preview , then click it take picture .

    var camera = new CameraCaptureUI();
        var file = await camera.CaptureFileAsync(CameraCaptureUIMode.Photo);

    ////////////////////////////////////////////////////////////////////////////////////////////////////

    Universal App USing MVVM

    But this code taking picture but its not showing preview , which picture need to take without preview just

    button click its taking picture only , I want show preview Help Me

    private async void CaptureImage() { Windows.Media.Capture.MediaCapture takePhotoManager = new Windows.Media.Capture.MediaCapture(); await takePhotoManager.InitializeAsync(); ImageEncodingProperties imgFormat = ImageEncodingProperties.CreateJpeg(); // a file to save a photo IStorageFile file = await KnownFolders.PicturesLibrary.CreateFileAsync( "Photo.jpg", CreationCollisionOption.GenerateUniqueName); await takePhotoManager.CapturePhotoToStorageFileAsync(imgFormat, file); }

    Monday, November 03, 2014 3:25 AM

Answers

  • I think you may refer to this website for more details.

    http://blog.falafel.com/showing-the-camera-preview-in-a-universal-app-2520orbust/

    and you also may refer to my website.

    cheahengsoon.weebly.com/blog


    Monday, November 03, 2014 7:00 AM