PEXCopyAlphaBufferToPixmap - Copy Alpha Buffer to a Pixmap (5.2)


Synopsis

 
   void PEXCopyAlphaBufferToPixmap(
        Display *display,
        PEXRenderer renderer,
        Pixmap pixmap
   )
 

Arguments

display
A pointer to a display structure returned by a successful XOpenDisplay call.

renderer
The resource identifier of the renderer.
pixmap
The resource identifier of the pixmap to receive the contents of the alpha buffer bound to the drawable associated with the renderer.

Returns

None.

Description

Invoke PEXCopyAlphaBufferToPixmap to copy the content of the alpha buffer to the pixmap.

If the renderer state attribute of the renderer specified by the renderer argument is PEXRendering or PEXMultipassRendering, then the renderer copies the content of the alpha buffer bound to the drawable associated with the renderer to the specified pixmap. The format of the values copied to the pixmap is implementation-dependent.

To determine the correct pixmap depth for copying the alpha buffer, see the PEXGetAncillaryBufferInfo function.

The renderer's clip list is not considered by this function.

If the renderer state is PEXPicking, then the validity of the values copied from the alpha buffer is implementation-dependent.

If the renderer state is PEXIdle, then this function has no effect.

Errors

BadAlloc
The implementation failed to allocate the alpha buffer.

BadPEXRenderer
The specified renderer resource identifier is invalid.

BadPixmap
The specified pixmap resource identifier is invalid.

BadMatch
The drawable associated with the renderer cannot have an alpha buffer.

BadMatch
The pixmap depth is not the same as the alpha buffer bound to the drawable associated with the renderer.

BadMatch
The pixmap's width or height do not match those of the drawable associated with the renderer.

See Also

For a list of all Renderer functions and related topics, see Rendering.