Windows Phone 7 (WP7) PhotoChooserTask with Crop [英] Windows Phone 7 (WP7) PhotoChooserTask with Crop

查看:16
本文介绍了Windows Phone 7 (WP7) PhotoChooserTask with Crop的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在许多应用中看到过这种情况,但在文档或在线示例中找不到任何内容.

I've seen this in a number of apps but can't find anything in the documentation or online samples.

当您调用 PhotoChooserTask 时,某些应用程序允许您调整大小/裁剪以仅使用该图像的一部分(通过显示白色矩形).我如何使用它并为目标图像设置我自己的尺寸?

When you invoke the PhotoChooserTask some apps enable you to resize / crop to use only a portion of that image (by showing a white rectangle). How can I use this and set my own dimensions for the target image?

推荐答案

您可以设置所需图像的宽度和高度以及 PhotoChooserTask 将自动创建裁剪机制.

You can set the width and height of the desired image and the PhotoChooserTask will automatically create the crop mechanism.

photoChooser.PixelHeight = 500;
photoChooser.PixelWidth = 500;

此方法在 pre-nodo 模拟器中存在一些已知问题;使用 7.1.1 工具我没有遇到任何问题.

There are some known issues with this method in the pre-nodo emulator; using the 7.1.1 tools I have not had any problems with this method.

这篇关于Windows Phone 7 (WP7) PhotoChooserTask with Crop的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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