问题
When you take a picture with the integrated camera, windows 8 automatically starts a cropping tool. You can enable it with this code:
CameraCaptureUI cameraUI = new CameraCaptureUI();
cameraUI.PhotoSettings.AllowCropping = true;
I need something similar for a picture which is chosen from the file picker. Is there any way to use the same Image-Cropper-Tool in the FilePicker as for the camera or do I have to implement it on my own?
回答1:
You need to implement on your own. Check out this awesome MSDN sample and another blog post
How to crop bitmap in a Windows Store app (C#)
An Image Cropper control for Windows 8 Store apps
来源:https://stackoverflow.com/questions/19564589/cropping-tool-after-file-picker-like-the-one-after-you-take-a-picture