Query: ps_setpolydash
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
PS_SETPOLYDASH(3) 1 PS_SETPOLYDASH(3) ps_setpolydash - Sets appearance of a dashed lineSYNOPSISbool ps_setpolydash (resource $psdoc, float $arr)DESCRIPTIONSets the length of the black and white portions of a dashed line. ps_setpolydash(3) is used to set more complicated dash patterns.PARAMETERSo $psdoc - Resource identifier of the postscript file as returned by ps_new(3). o $arr -$arr is a list of length elements alternately for the black and white portion.RETURN VALUESReturns TRUE on success or FALSE on failure.EXAMPLESExample #1 Drawing a dashed line <?php $ps = ps_new(); if (!ps_open_file($ps, "polydash.ps")) { print "Cannot open PostScript file "; exit; } ps_set_info($ps, "Creator", "polydash.php"); ps_set_info($ps, "Author", "Uwe Steinmann"); ps_set_info($ps, "Title", "Poly dash example"); ps_begin_page($ps, 596, 842); ps_setpolydash($ps, array(10, 5, 2, 5)); ps_moveto($ps, 100, 100); ps_lineto($ps, 200, 200); ps_stroke($ps); ps_end_page($ps); ps_delete($ps); ?> This example draws a line with a 10 and 2 points long line, and gaps of 5 points inbetween.SEE ALSOps_setdash(3). PHP Documentation Group PS_SETPOLYDASH(3)
Related Man Pages |
---|
collator_asort(3) - php |
ps_begin_pattern(3) - php |
ps_begin_template(3) - php |
ps_lineto(3) - php |
ps_setcolor(3) - php |
Similar Topics in the Unix Linux Community |
---|
awk problems |
How to inset tabs in ARRAYS |
help - exec time too long |
Aggregated points |
Please help on array in unix |