Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

TAcceleratedBitmapInfo.iPixelShift的文档变化和二进制不兼容的问题

From Wiki
Jump to: navigation, search
Article Metadata

兼容于
平台: S60 3rd Edition, MR, S60 3rd Edition, FP1
S60 3rd Edition FP1
S60 3rd Edition (initial release)

文章
huwell 在 30 Nov 2007 创建
最后由 hamishwillee 在 30 May 2013 编辑
  • 详细描述

S60第三版MR和FP1 SDK中所记载的TAcceleratedBitmapInfo.iPixelShift内容并不正确,描述如下:


“The number of bits needed to represent one pixel in the bitmap”


有关TAcceleratedBitmapInfo.iPixelShift的正确定义应为:


“The shift required to obtain the number of bits needed to represent one pixel in the bitmap. The number of bits per pixel is calculated as 1 << iPixelShift”


一些S60第三版手机使用了文档错误定义下的组件。


TAcceleratedBitmapInfo.iPixelShift在错误的实现下会返回32,而正确的值将会是5.


错误返回值上实现的程序在某些S60手机上将无法正确工作。


至少下列机型是存在上述错误机制的(TAcceleratedBitmapInfo.iPixelShift返回32)

- Nokia 3250

- Nokia E60

- Nokia E70

- Nokia N80

- Nokia N75


但另外一些机型正确的纠正了上述问题(TAcceleratedBitmapInfo.iPixelShift返回5):

- Nokia N95


注意:不过如果手机更新了新的软件版本,上述问题可能有所改变,使用TAcceleratedBitmapInfo.iPixelShift的程序应将以上两种情况都考虑在内。

This page was last modified on 30 May 2013, at 04:36.
144 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×