I am using CameraCaptureUI in a Windows Store App (8.1). I was using this code:
dim dialog as New CameraCaptureUI()
dim aspectRatio as New Size(16,9)
dialog.PhotoSettings.MaxResolution = CameraCaptureUIMaxPhotoResolution.HighestAvailable
dialog.PhotoSettings.AllowCropping = True
The pictures are taken in Landscape but the cropping window always displayed as if Portrait. It required us to adjust the cropping handles to make landscape and adjust cropping to desired results. Annoying but workable.
Now we're are running into more complicated issues. Sometimes the cropping portion (for lack of better words) "freaks out." We only see the upper left corner cropping handle. The image is extremely small in the upper left corner. If we try to adjust the only handle we see, the crop window closes and returns an error - image not captured.
If I close App and reboot device, no change in cropping. If I close app and reboot, then at time of picture taking select "Pro" mode, take picture, the same cropping issue. Reset image, change mode back to regular and take picture. cropping window returns to normal. Strange - right?
Two questions from this:
1) Is there anyway to rotate the crop window from portrait to Landscape? Not having to crop so intensely might avoid the issue or at minimum make my users happier.
2) It appears something is being held by some variable. Any suggestions for how to flush all the CameraCaptureUI variables?
Thank you in advance for any assistance or advice.