XSetStipple() XSetStipple()
Name
XSetStipple - set the stipple in a graphics context.
Synopsis
XSetStipple(display, gc, stipple)
Display *display;
GC gc;
Pixmap stipple;
Arguments
display Specifies a connection to an X server; returned from XOpenDisplay().
gc Specifies the graphics context.
stipple Specifies the stipple for the specified graphics context.
Description
XSetStipple() sets the stipple component of a GC. The stipple is a pixmap of depth one. It is laid out like a tile. Set bits in the
stipple determine which pixels in an area are drawn in the foreground pixel value. Unset bits in the stipple determine which pixels are
drawn in the background pixel value if the fill_style is FillOpaqueStippled. If fill_style is FillStippled, pixels overlain with unset
bits in the stipple are not drawn. If fill_style is FillTiled or FillSolid, the stipple is not used.
For more information, see Volume One, Chapter 5, The Graphics Context.
Errors
BadAlloc
BadGC
BadMatch
BadPixmap
See Also
XDefaultGC(), XChangeGC(), XCopyGC(), XCreateGC(), XFreeGC(), XGContextFromGC(), XSetArcMode(), XSetBackground(), XSetClipMask(), XSetCli-
pOrigin(), XSetClipRectangles(), XSetDashes(), XSetFillRule(), XSetFillStyle(), XSetForeground(), XSetFunction(), XSetGraphicsExposures(),
XSetLineAttributes(), XSetPlaneMask(), XSetState(), XSetSubwindowMode(), XSetTSOrigin().
Xlib - Graphics Context XSetStipple()