【发布时间】:2013-02-21 18:33:05
【问题描述】:
我尝试使用 bmp 文件在 x11 窗口中设置背景图像。我使用了 XReadBitmapFile 但它不起作用。如何使用 bmp 文件设置 x11 窗口背景。提前致谢
【问题讨论】:
-
您能向我们展示您的尝试吗?
-
GC gc = XCreateGC (d, w, 0, NULL); int 资源 = XReadBitmapFile(d, w, "demo.bmp", &width, &height, &bitmap, &x, &y); XCopyPlane(d, bitmap, w, gc, 0, 0, width, height, 0, 0, 1);
标签: c++ linux x11 embedded-linux xlib