From 3c83cdea5427a469b2b55c2efb08d030f13a6437 Mon Sep 17 00:00:00 2001 From: Rasmus Lerdorf Date: Thu, 24 May 2001 06:01:59 +0000 Subject: [PATCH] Add a bit of detail and fix a return type git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@48352 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/pdf.xml | 34 +++++++++++++++++++++++++++------- 1 file changed, 27 insertions(+), 7 deletions(-) diff --git a/functions/pdf.xml b/functions/pdf.xml index 11955b0823..56ccd356ed 100644 --- a/functions/pdf.xml +++ b/functions/pdf.xml @@ -726,7 +726,7 @@ pdf_delete($pdf); Description - void pdf_begin_pattern + int pdf_begin_pattern int pdf object double width double height @@ -736,7 +736,13 @@ pdf_delete($pdf); - Start a new pattern definition. + Starts a new pattern definition and returns a pattern handle. + width, and height + define the bounding box for the pattern. xstep + and ystep give the repeated pattern offsets. + painttype=1 means that the pattern has its + own colour settings whereas a value of 2 indicates tha the current + colour is used when the pattern is applied. @@ -1970,9 +1976,9 @@ pdf_close_image($pdf, $pim); string type string colorspace double c1 - double c2 - double c3 - double c4 + double c2 + double c3 + double c4 @@ -1987,7 +1993,20 @@ pdf_close_image($pdf, $pim); c1, c2, c3 and c4 represent the color components for the color space specified by - colorspace. + colorspace. For gray only + c1 is used. For rgb parameters + c1, c2, and + c3 specify the Red, Green amd Blue values + respectively. + For cmyk parameters c1, + c2, c3, and + c4 specify the Cyan, Magenta, Yellow and + Black values respectively. + For spot c1 specifies + a spot color handles returned by pdf_makespotcolor + and c2 specifies a tint value between 0 and 1. + For pattern c1 specifies + a pattern handle returned by pdf_begin_pattern. @@ -2008,7 +2027,8 @@ pdf_close_image($pdf, $pim); - Set the current dash pattern to b black and w white units. + Set the current dash pattern to b black + and w white units.