PostScriptBezier
Syntax | ||
int PostScriptBezier(struct PostScript *ptr, float x1,float y1,float x2,float y2,float x3,float y3, float x4,float y4, unsigned int color,float width, struct PostScriptDash *dash,struct PostScriptClip *clip); | ||
Header | ||
base/rps.h | ||
Library | ||
rps | ||
Description | ||
The The argument ptr is a pointer to the The coordinates of the four points that define the bezier curve are given by the arguments x1, y1,x2, y2,x2, y3, and x4, y4. The two end points are defined by x1, y1 and x4,y4. The other two coordinates are the control points. The color used to plot the curve is given by the color which is a 24-bit number that represents the red,green and blue components of the color as 8-bit numbers. The red channel occupies the most significant bits and the blue channel occupies the least significant bits. The width of the line used to plot the curve is controlled using the argument width, a value of zero will plot a hairline. The dot-dash pattern is given by dash. If this is set to a The clipping polygon is given by the argument clip. If this is set to a | ||
Returns | ||
Returns zero on success. On error, (-1) is returned. | ||
Errors | ||
On error, (-1) is returned. | ||
Example | ||
PostScriptBezier
|