PDF_setgray

(PHP 4, PECL pdflib >= 1.0.0)

PDF_setgraySet color to gray [deprecated]

说明

PDF_setgray ( resource $p , float $g ) : bool

Sets the current fill and stroke color to a gray value between 0 and 1 inclusive. 成功时返回 TRUE, 或者在失败时返回 FALSE

This function is deprecated since PDFlib version 4, use PDF_setcolor() instead.

User Contributed Notes

leea at digitus dot com dot au 29-Jan-2001 07:37
pdf_setgray double values start at 0 for black and end at 1 for white so for any shade of gray simply pick a value inbetween these 2 numbers