From 875946ea1fa32981eea0637200eeef1d4154c280 Mon Sep 17 00:00:00 2001 From: Kalle Sommer Nielsen Date: Thu, 21 Aug 2008 05:45:06 +0000 Subject: [PATCH] * Added var_dump() call on imagecolorat() example to make the output as expected * Added missing ; in the 2nd example on imagedashedline() * Added example for imagesavealpha() * Added example for imagepsfreefont() git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@265202 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/image/functions/imagecolorat.xml | 4 ++- reference/image/functions/imagedashedline.xml | 4 +-- reference/image/functions/imagepsfreefont.xml | 23 +++++++++++++- reference/image/functions/imagesavealpha.xml | 30 ++++++++++++++++++- 4 files changed, 56 insertions(+), 5 deletions(-) diff --git a/reference/image/functions/imagecolorat.xml b/reference/image/functions/imagecolorat.xml index fbb94f954b..9638f76e2e 100644 --- a/reference/image/functions/imagecolorat.xml +++ b/reference/image/functions/imagecolorat.xml @@ -1,5 +1,5 @@ - + imagecolorat @@ -67,6 +67,8 @@ $rgb = imagecolorat($im, 10, 15); $r = ($rgb >> 16) & 0xFF; $g = ($rgb >> 8) & 0xFF; $b = $rgb & 0xFF; + +var_dump($r, $g, $b); ?> ]]> diff --git a/reference/image/functions/imagedashedline.xml b/reference/image/functions/imagedashedline.xml index fafa0eab4e..b086d0f0a4 100644 --- a/reference/image/functions/imagedashedline.xml +++ b/reference/image/functions/imagedashedline.xml @@ -1,5 +1,5 @@ - + imagedashedline @@ -125,7 +125,7 @@ $style = Array( IMG_COLOR_TRANSPARENT, IMG_COLOR_TRANSPARENT, IMG_COLOR_TRANSPARENT - ) + ); imagesetstyle($im, $style); diff --git a/reference/image/functions/imagepsfreefont.xml b/reference/image/functions/imagepsfreefont.xml index 04225472d1..d8b7ab5388 100644 --- a/reference/image/functions/imagepsfreefont.xml +++ b/reference/image/functions/imagepsfreefont.xml @@ -1,5 +1,5 @@ - + imagepsfreefont @@ -37,6 +37,27 @@ &return.success; + + &reftitle.examples; + + + <function>imagepsfreefont</function> example + + +]]> + + + + &reftitle.notes; ¬e.config.t1lib; diff --git a/reference/image/functions/imagesavealpha.xml b/reference/image/functions/imagesavealpha.xml index eeb9ecb86f..802d19761e 100644 --- a/reference/image/functions/imagesavealpha.xml +++ b/reference/image/functions/imagesavealpha.xml @@ -1,5 +1,5 @@ - + imagesavealpha @@ -49,6 +49,34 @@ &return.success; + + &reftitle.examples; + + + <function>imagesavealpha</function> example + + +]]> + + + + &reftitle.notes; ¬e.gd.2;