Cropping tool after file picker (like the one after you take a picture)

霸气de小男生 提交于 2020-01-15 09:25:41

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!