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
(PHP 4, PECL pdflib >= 1.0.0)
PDF_setgray — 色をグレーに設定する [古い関数]
$p
, float $g
) : bool
現在の塗りつぶしおよび輪郭描画色を 0 から 1 までのグレー値に設定します。
成功した場合に TRUE
を、失敗した場合に FALSE
を返します。
この関数は PDFlib バージョン 4 で廃止されました。かわりに PDF_setcolor() を使用してください。
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