Windows Phone 8.1 的内置裁剪选项 PhotoChooserTask [英] PhotoChooserTask built in crop option for windows phone 8.1

查看:22
本文介绍了Windows Phone 8.1 的内置裁剪选项 PhotoChooserTask的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Windows Phone 8 中,我使用 PhotoChooserTask 从手机图库中获取图像,当我固定像素宽度和高度时,Windows Phone 会自动启动一个页面来裁剪所选图像.有人能告诉我如何使用 FileOpenPicker 启用此选项吗?

In Windows Phone 8 I was using PhotoChooserTask to get images from phone gallery and when I fixed Pixel width and height automatically windows phone start a page for cropping the selected image. Can someone tell me how to enable this option with FileOpenPicker?

推荐答案

可惜 Windows phone 8.1 SDK 没有这个操作,我发誓我到处找,MDSN 的人告诉我是不可能......但你可以尝试两种选择:

Unfortunately the Windows phone 8.1 SDK does not have this operation, and I swear I tried look for it in every where, and the people of MDSN tell me it is impossible.... But you can try two options:

第一:在 FileOpenPicker 的工作流程中,用户有两个选项:拍摄已经存在的图像文件或拍摄新照片,如下图:

First: In the workflow of FileOpenPicker the user has two options take a image file already exists or take a new picture like the follow pic:

因此,在这种情况下,您什么都不做,而是与 UX 领域进行交流,而这是不可能做到的 =) .

So in this case you do nothing and talk to UX area that is impossible to do =) .

第二:您可以在使用 Windows Phone 8.0 SDK(而不是 8.1)的同一个项目解决方案中创建一个模块(单独的项目).使用 PhotoChooserTask 做你需要完成的工作......在主项目中添加对它的引用并高兴.

Second: You can create a module(separated project) in the same Project Solution which uses the Windows Phone 8.0 SDK (instead 8.1). Do what you need to get the job done using the PhotoChooserTask... After in the main project add a reference to it and be happy.

一些大项目在使用这个方案是因为8.1 SDK去掉了8.0 SDK的很多特性,做了一些很难做的事情.

Some big projects are using this solution because the 8.1 SDK removed a lot of features of 8.0 SDK and did some things hard to do.

您应该在源代码中查看的一个项目是 https://telegram.org/apps

One project you should take a look in the source code is https://telegram.org/apps

希望能帮到你.

祝你好运!

这篇关于Windows Phone 8.1 的内置裁剪选项 PhotoChooserTask的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆