pdf_setgray

(PHP 3 >= 3.0.6, PHP 4, PECL)

pdf_setgray -- Sets drawing and filling color to gray value

Description

bool pdf_setgray ( resource pdfdoc, float gray )

Set the current fill and stroke color. 如果成功则返回 TRUE,失败则返回 FALSE

注: PDFlib V4.0: Deprecated, use pdf_setcolor() instead.


add a note add a note User Contributed Notes
leea at digitus dot com dot au
30-Jan-2001 11: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