Windows Phone 7 目标显示分辨率 - 建议?

发布于 2024-09-20 00:00:40 字数 235 浏览 2 评论 0原文

官方WP7模拟器使用800x480分辨率。我能找到的关于计划中的 WP7 手机(例如三星 Cetus i917)的唯一信息具有相同的分辨率。虽然我意识到编写与分辨率无关的程序的吸引力,但我真的宁愿专注于将一组已知的硬件发挥到最大,而不是为了一刀切而牺牲功能和效率。

假设 800x480 将被广泛采用作为 WP7 设备的事实上的标准并进行相应的编码是否相当安全?或者是否有其他原因(除了明显的原因)表明我应该在程序设计中考虑可变显示分辨率?

The official WP7 emulator uses 800x480 resolution. The only info I can find on planned WP7 phones (eg Samsung Cetus i917) share the same resolution. While I realise the appeal of writing resolution-independant programs, I'd really rather focus on pushing a known set of hardware to the max than sacrificing features and efficiency for one-size-fits-all.

Is it fairly safe to assume 800x480 will be widely adopted as the de facto standard for WP7 devices and to code accordingly? Or are there reasons (other than the obvious) that I should be considering variable display resolution in my program designs?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

会发光的星星闪亮亮i 2024-09-27 00:00:46

现在手机已经问世,您可以放心地说一切都是 480x800!

Now that the phones are coming out you can safely say everything is 480x800!

挽清梦 2024-09-27 00:00:45

从我读过的一些 XNA 4 文档中:

我们可以定义游戏的大小
后台缓冲区与
目标设备的大小,并绘制
根据我们的定义。这
硬件会将我们的图像缩放到
目标设备。拥有硬件
将我们的图像缩放到最终目标
大小意味着移植游戏的工作量最少
不同设备之间,但要获得
我们尽可能提供最好的图像质量
应考虑实际目标
提前显示。下面的代码
片段显示了如何配置
最大分辨率的后台缓冲区
Windows Phone 7 支持。

C#
if (this.Window.CurrentOrientation == DisplayOrientation.Portrait)
{
    graphics.PreferredBackBufferWidth = 480;
    graphics.PreferredBackBufferHeight = 800;
}
else
{
    graphics.PreferredBackBufferWidth = 800;
    graphics.PreferredBackBufferHeight = 480;
}

最重要的是,他们明确指定 800x480 为支持的最大分辨率。它还展示了如果需要的话,定位多个分辨率是多么容易。

但在本例中,我假设我的程序只能在 800x480 上运行。

From some of the XNA 4 documentation I've been reading:

We can define the size of the game
back buffer to be different from the
size of the target device, and to draw
according to our definitions. The
hardware will scale our image to the
target device. Having the hardware
scale our image to the final target
size means minimal work porting games
between different devices, but to get
the best possible image quality we
should consider the actual target
display in advance. The following code
fragment shows how to configure the
back buffer for the maximum resolution
supported by Windows Phone 7.

C#
if (this.Window.CurrentOrientation == DisplayOrientation.Portrait)
{
    graphics.PreferredBackBufferWidth = 480;
    graphics.PreferredBackBufferHeight = 800;
}
else
{
    graphics.PreferredBackBufferWidth = 800;
    graphics.PreferredBackBufferHeight = 480;
}

Most importantly, they clearly specify 800x480 as being the maximum supported resolution. It also demonstrates how easy it is to target multiple resolutions should that be desired.

In this instance though, I'm assuming my programs will only ever run on 800x480.

少跟Wǒ拽 2024-09-27 00:00:45

我能够收集到的最新官方信息与 Darko Z 的观察结果一致。

现在800x480
480x320 以后

关于 MS 内部的官方政策和评论,似乎仍然需要支持这两种分辨率,但 Microsoft 已记录表明,在发布 480x320 设备并提供相应工具以正确使用之前,此要求不会生效。处理这个。

相关讨论和政策文件参考此处。

http://social. msdn.microsoft.com/Forums/en-US/windowsphone7series/thread/75f2d3ee-88fa-4e5c-8bc0-e70daba1e660

The most current and official information I've been able to put together on this is consistant with Darko Z's observations.

800x480 now
480x320 later

Regarding official policy and commentary from within MS, there appears to still be a requirement to support both resolutions, however Microsoft is on record as stating that this requirement will not come into play until 480x320 devices are released and corresponding tools made available to properly deal with this.

Related discussion and policy document references here.

http://social.msdn.microsoft.com/Forums/en-US/windowsphone7series/thread/75f2d3ee-88fa-4e5c-8bc0-e70daba1e660

孤凫 2024-09-27 00:00:43

800x480 目前是 MS 对 WP7 硬件设定的要求。然而我们也知道微软最终将为黑莓型手机推出另一种分辨率(我认为是 320x480?)。

剩下的唯一问题是了解这些决议是最低要求还是设定要求。

所以回答你的问题:目前,为 800x480 编码是安全的,因为第一批设备都将是 800x480

800x480 is currently a requirement set down by MS for WP7 hardware. However we also know that MS will eventually introduce another resolution for Blackberry type phones (320x480 i think?).

The only problem that remains is knowing whether those resolutions are a minimum requirement or a set requirement.

So to answer your question: its safe to code for 800x480 for now seeing as the first batch of devices will all be 800x480

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文