I'm working with X11 and I've been looking for the reason why, in every program I've seen trying to create an image with XCreateImage, the parameter vis is set to "CopyFromParent".

I've already see this question in stackoverflow.

But the examples also use the same value. ¿Could anyone explain me the reason? Thank you

有帮助吗?

解决方案

It's one of Xlib's classes which says "copy the Visual class Type from the parent". Visual Type being "DirectColor", "PsuedoColor", "red_mask", "green_mask", "blue_mask", etc.

http://tronche.com/gui/x/xlib/window/visual-types.html#Visual

CopyFromParent is a flag saying "copy these values from the, typically the main display window - XOpenDisplay(NULL).

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top