如何在gtk、gdk中存储X服务器中的图像数据?

发布于 2024-09-28 18:01:19 字数 69 浏览 1 评论 0原文

无论如何,是否可以将图像数据存储在 X 服务器内存中,以便图像的渲染(例如滚动)更快,从而可以减少到 x 客户端的往返次数?

Is there anyway to store image data in X server memory so that rendering of images, (for example in scrolling), is faster and so that round trips to x client can be reduced?

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

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

发布评论

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

评论(1

年华零落成诗 2024-10-05 18:01:19

我终于知道该怎么做了。我们可以使用支持像素图,也可以使用函数调用 gdk_draw_drawable() 将窗口的一部分直接复制到可绘制对象。使用 pixmap 将图像数据存储在服务器端,从而减少到客户端的往返次数

I finally figured out how to do it. we can use a backing pixmap or we can also copy parts of the window directly to drawables using the function call gdk_draw_drawable(). Using pixmap will store the image data on the server side and hence will reduce the number of round trips to the client

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