本文介绍了使用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时宽度和高度反转.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-17 21:58