XSetStipple()XSetStipple()NameXSetStipple – 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 XOpenDis‐
play().
gc Specifies the graphics context.
stipple Specifies the stipple for the specified graphics context.
DescriptionXSetStipple() 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 FillOpaque‐
Stippled. If fill_style is FillStippled, pixels overlain with unset
bits in the stipple are not drawn. If fill_style is FillTiled or Fill‐
Solid, the stipple is not used.
For more information, see Volume One, Chapter 5, The Graphics Context.
Errors
BadAlloc
BadGC
BadMatch
BadPixmap
See AlsoXDefaultGC(), XChangeGC(), XCopyGC(), XCreateGC(), XFreeGC(), XGCon‐
textFromGC(), XSetArcMode(), XSetBackground(), XSetClipMask(), XSetCli‐
pOrigin(), XSetClipRectangles(), XSetDashes(), XSetFillRule(), XSet‐
FillStyle(), XSetForeground(), XSetFunction(), XSetGraphicsExposures(),
XSetLineAttributes(), XSetPlaneMask(), XSetState(), XSetSubwindow‐
Mode(), XSetTSOrigin().
Xlib - Graphics Context XSetStipple()