黑莓手机中的双缓冲?

发布于 2024-08-03 03:30:12 字数 85 浏览 4 评论 0原文

在渲染我们的绘制代码时,我们是否需要在 BlackBerry 中进行双缓冲,或者 BlackBerry 会处理这个问题吗?如果我们需要自己做,我们该怎么做?

Do we need to do double buffering in BlackBerry while rendering our paint code or does BlackBerry handle that? If we need to do that ourselves, how do we do that?

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

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

发布评论

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

评论(1

陌路终见情 2024-08-10 03:30:12

正如理查德所说,

尽管需要在移动信息设备配置文件 (MIDP) 应用程序中执行显式双缓冲,但 BlackBerry 用户界面 (UI) 实现本质上是双缓冲的。这意味着无需对 UI 图像执行您自己的双缓冲。本质上,net.rim.device.api.ui.Graphics 对象中的所有绘图函数都由系统绘制到离屏位图。当您要求重新绘制屏幕时,它会绘制此离屏位图,而不是顺序绘制屏幕。同样的绘图范例适用于 Blackberry UI 中的所有领域和领域经理。

BlackBerry KB - 如何使用 BlackBerry UI 执行双缓冲?

Just like Richard said,

Although there is a need to perform explicit double buffering in Mobile Information Device Profile (MIDP) applications, the BlackBerry user interface (UI) implementation is inherently double-buffered. This means there is no need to perform your own double buffering of UI images. Essentially, all drawing functions in net.rim.device.api.ui.Graphics objects are drawn to an off-screen bitmap by the system. When you call for a repaint of the screen, it draws this off-screen bitmap instead of sequentially painting the screen. This same drawing paradigm is true for all fields and field managers within the Blackberry UI.

BlackBerry KB - How do I perform double buffering using the BlackBerry UI?

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