Hi All,
Am developing Win 8 Apps.
Capturing Image from camera is working fine in one screen but its giving error is screen 2
am using following code
CameraCaptureUI dialog = new CameraCaptureUI();
Size aspectRatio = new Size(16, 9);
dialog.PhotoSettings.CroppedAspectRatio = aspectRatio;
file = await dialog.CaptureFileAsync(CameraCaptureUIMode.Photo);
if (file != null)
{
BitmapImage bitmapImage = new BitmapImage();
using (IRandomAccessStream fileStream = await file.OpenAsync(FileAccessMode.Read))
{
bitmapImage.SetSource(fileStream);
}
ImagePath = string.Empty;
ImagePath = file.Path;
"Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))"
Am getting this error
At this line
file = await dialog.CaptureFileAsync(CameraCaptureUIMode.Photo);
am getting this error when i try to use the same code which i have used in screen 1.
in scree 1 am not getting any error.
any suggestion would be of great help.
Thanks
Arjun.M
Arjun