In my Lumia 920, GetAvailablePreviewResolutions() returns that the following 4 permissions are available for the target device:
- 1280x720
- 1024x768
- 800x448
- 640x480
but SetPreviewResolutionAsync() only accepts 1024x768. For the remaining three (supported) permissions, it throws an exception
System.ArgumentException: value does not fall into the expected range.
I restarted my phone, but it doesnβt help either.
==================================================== ==========================
For future developers who are facing the same problem, my conclusions are given below.
The Nokia Lumia 920 supports the following 6 capture resolutions (with an appropriate aspect ratio):
3264X2448 4:3; 3552X2000 16:9; 2592X1936 4:3; 2592X1456 16:9 ; 2048X1536 4:3 ; 640X480 4:3 ;
and the following 4 preview permissions (with appropriate aspect ratio):
1280X720 16:9; 1024X768 4:3 ; 800X448 16:9 ; 640X480 4:3;
for a 16: 9 aspect ratio, capture_resolutions uses only 16: 9 preview versions.
Link: http://www.developer.nokia.com/Resources/Library/Lumia/#!advanced-photo-capturing.html
Link: http://msdn.microsoft.com/en-us/library/windowsphone/develop/windows.phone.media.capture.photocapturedevice.setpreviewresolutionasync(v=vs.105).aspx
Luqman
source share