3 More Discussions You Might Find Interesting
1. OS X (Apple)
Howdy
I am trying to install links2 with graphics support on snow leopard 10.6.8 (xcode installed). I have had the program running last year, also installed from source - but then I had installed some image libraries with mac ports and fink - cannot reproduce that setup. Plus I would like to not... (6 Replies)
Discussion started by: butterbaerchen
6 Replies
2. Linux
Hi,
We have one java client which connects to a windows server through ftp in active mode and gets files. When we run this client on hp-ux, it is able to transfer 100k files. But when we run the same client on Linux server it is able to transfer only 200 files at max and it is hanging there... (1 Reply)
Discussion started by: urspradeep330
1 Replies
3. AIX
Hi all,
I am new to HACMP. So sorry for the newie question. But I did search the forum and it seems that no one asks this before.
So if a 2-node cluster runs in active-active mode (and the same application), what is the benefit of using HACMP ?
If it runs in active-stanby, it is easy to... (9 Replies)
Discussion started by: qiulang
9 Replies
XFillPolygon() XFillPolygon()
Name
XFillPolygon - fill a polygon.
Synopsis
XFillPolygon(display, drawable, gc, points, npoints, shape, mode)
Display *display;
Drawable drawable;
GC gc;
XPoint *points;
int npoints;
int shape;
int mode;
Arguments
display Specifies a connection to an X server; returned from XOpenDisplay().
drawable Specifies the drawable.
gc Specifies the graphics context.
points Specifies a pointer to an array of points.
npoints Specifies the number of points in the array.
shape Specifies an argument that helps the server to improve performance. Pass the last constant in this list that is valid for the
polygon to be filled: Complex, Nonconvex, or Convex.
mode Specifies the coordinate mode. Pass either CoordModeOrigin or CoordModePrevious.
Description
XFillPolygon() fills the region closed by the specified path. Some but not all of the path itself will be drawn. The path is closed auto-
matically if the last point in the list does not coincide with the first point. No pixel of the region is drawn more than once.
The mode argument affects the interpretation of the points that define the polygon:
o CoordModeOrigin indicates that all points are relative to the drawable's origin.
o CoordModePrevious indicates that all points after the first are relative to the previous point. (The first point is always relative to
the drawable's origin.)
The shape argument allows the fill routine to optimize its performance given tips on the configuration of the area.
o Complex indicates the path may self-intersect. The fill_rule of the GC must be consulted to determine which areas are filled. See Vol-
ume One, Chapter 5, The Graphics Context, for a discussion of the fill rules EvenOddRule and WindingRule.
o Nonconvex indicates the path does not self-intersect, but the shape is not wholly convex. If known by the client, specifying Nonconvex
instead of Complex may improve performance. If you specify Nonconvex for a self-intersecting path, the graphics results are undefined.
o Convex means that for every pair of points inside the polygon, the line segment connecting them does not intersect the path. Convex can
improve performance even more than Nonconvex, but if the path is not convex, the graphics results are undefined.
Contiguous coincident points in the path are not treated as self-intersection.
XFillPolygon() uses these graphics context components when filling the polygon area: function, plane_mask, fill_style, fill_rule, subwin-
dow_mode, clip_ x_origin, clip_y_origin, and clip_mask. This function also uses these mode-dependent components of the GC: foreground,
background, tile, stipple, ts_x_
origin, and ts_y_origin.
For more information, see Volume One, Chapter 6, Drawing Graphics and Text, and Chapter 5, The Graphics Context.
Structures
typedef struct {
short x, y;
} XPoint;
Errors
BadDrawable
BadGC
BadMatch
BadValue
See Also
XClearArea(), XClearWindow(), XCopyArea(), XCopyPlane(), XDraw, XDrawArc(), XDrawArcs(), XDrawFilled(), XDrawLine(), XDrawLines(), XDraw-
Point(), XDrawPoints(), XDrawRectangle(), XDrawRectangles(), XDrawSegments(), XFillArc(), XFillArcs(), XFillRectangle(), XFillRectangles().
Xlib - Drawing Primitives XFillPolygon()