使用MediaLibrary时宽度和高度反转.

编程入门 行业动态 更新时间:2024-10-08 06:17:53
本文介绍了使用MediaLibrary时宽度和高度反转.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我编写了一些Windows Phone 7 APP.我打算在手机上浏览照片.我用手机拍了张照片,照片的大小是1944x2592(宽x高).然后我用

I write some Windows Phone 7 APPs. I intend to visit the photo on cell phone. I take a photo with the phone and the size of photo is 1944x2592 (W x H). Then I use

MediaLibrary mediaLibrary = new MediaLibrary(); for(int x = 0; x< mediaLibrary.Pictures.Count; ++ x) { 图片pic = mediaLibrary.Pictures [x]; int w = pic.width; int h = pic.height; ...

MediaLibrary mediaLibrary = new MediaLibrary(); for (int x = 0; x < mediaLibrary.Pictures.Count; ++x) { Picture pic = mediaLibrary.Pictures[x]; int w = pic.width; int h = pic.height; ...

但是,我发现w为2592,h为1944.宽度和高度的值颠倒了!谁能告诉我发生了什么事?有什么问题?期待您的回复!谢谢.

However, I found that the w is 2592 and the h is 1944. The value of Width and Height are reversed! Who can tell me what's going on? what's the problem? I am looking forward to your reply! Thank you.

推荐答案

我没有看到与此相关的任何已知问题.在拍摄过程中,相机的物理方向可能会变为横向.

I am not seeing any known issues regarding this. Perhaps the physical orientation of your camera changed to landscape during the photography.

-马克

更多推荐

使用MediaLibrary时宽度和高度反转.

本文发布于:2023-07-19 13:43:44,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1157087.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:宽度   高度   MediaLibrary

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!