This page was last modified 09:11, 30 November 2007.
TAcceleratedBitmapInfo.iPixelShift的文档变化和二进制不兼容的问题
From Forum Nokia Wiki
- 设备, 软件 版本:
S60 3rd Edition, MR S60 3rd Edition, FP1
- 详细描述
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的程序应将以上两种情况都考虑在内。
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Huge slowdown on 3rd | nhamel | Symbian Media (Graphics & Sounds) | 0 | 2006-08-16 18:20 |
| CDirectScreenBitmap & CDirectScreenAccess | tsippa | Symbian User Interface | 1 | 2006-12-18 07:33 |
| using CActive with CDirectScreenBitmap, works a little then crashes! | Andy1967 | General Symbian C++ | 4 | 2007-11-14 13:54 |
| Direct screen access in Symbian 3rd edition - still available? | mike.b | General Symbian C++ | 25 | 2007-07-23 09:16 |
| Direct Screen Access... | nkonstas | General Symbian C++ | 3 | 2007-06-06 12:00 |
