PostScriptLine
Syntax | ||
int PostScriptLine(struct PostScript *ptr, float ax,float ay,float bx,float by, 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 PostScript control structure. The coordinates of the two points that define the line are given by the arguments ax, ay, and bx, by. The color used to plot the line is given by the color which is a 24-bit number that represents the alpha,red,green and blue components of the color as 8-bit numbers. The alpha channel occupies the most significant bits and the blue channel occupies the least significant bits. The width of the line 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 | ||
PostScriptLine
|