I need to allow the user to crop the photo they shoot with a Windows 8.1 tablet camera and then display it in a <canvas> so that they can mark it up. I want to grab the w x h ratio of the pic they shoot, then display it in the <canvas>
w the same w x h ratio, so that it is not stretched horizontally or vertically,
How do I grab the image w & h or w x h ratio? Here is the code I am using to let the user shoot the photo.
var captureUI = new Windows.Media.Capture.CameraCaptureUI();
captureUI.photoSettings.maxResolution = Windows.Media.Capture.CameraCaptureUIMaxPhotoResolution.large3M;
captureUI.captureFileAsync(Windows.Media.Capture.CameraCaptureUIMode.photo).then(function (capturedItem) {...
Thanks
Phil