Cropping tool after file picker (like the one afte

2019-08-08 20:48发布

问题:

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