The picture object contains a drawable, a picture-format and some rendering state. More than one picture can refer to the same drawable.
A picture is almost like a gcontext, except that it is tied in use to a single drawable. Another similarity it has with gcontext is that it is a cached object. Updates are not processed until the picture is used. This also makes it possible to query state, as there is no such request in XRENDER to do so.
The picture object is also a lot like a drawable, in that it is used as a target for graphics operations. Or at least that it occurs where you would expect a drawable in XRENDER requests.
render-create-picture | drawable &key format picture ... | Function |
This request creates a Picture object. If the drawable is a Window then the Red, Green and Blue masks must match those in the visual for the window else a Match error is generated.
|