From 85bdebe1e43eef256789b2d07a2a12654253fe51 Mon Sep 17 00:00:00 2001 From: Kalle Sommer Nielsen Date: Wed, 30 Jul 2008 03:05:34 +0000 Subject: [PATCH] Fix various bugs inside gd documentation part 1/3 git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@263821 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/image/functions/image2wbmp.xml | 3 ++- reference/image/functions/imagecolormatch.xml | 8 ++++---- .../image/functions/imagecolorsforindex.xml | 3 ++- reference/image/functions/imageconvolution.xml | 3 ++- reference/image/functions/imagecreatefromgd.xml | 11 +++++++++-- .../image/functions/imagecreatefromgd2.xml | 13 +++++++++++-- .../image/functions/imagecreatefromgd2part.xml | 17 +++++++++++++++-- .../image/functions/imagecreatefromgif.xml | 4 ++-- .../image/functions/imagecreatefrompng.xml | 4 ++-- .../image/functions/imagecreatefromxpm.xml | 4 ++-- 10 files changed, 51 insertions(+), 19 deletions(-) diff --git a/reference/image/functions/image2wbmp.xml b/reference/image/functions/image2wbmp.xml index 029d5e24f5..f950758e00 100644 --- a/reference/image/functions/image2wbmp.xml +++ b/reference/image/functions/image2wbmp.xml @@ -1,5 +1,5 @@ - + image2wbmp @@ -36,6 +36,7 @@ threshold + Threshold value, between 0 and 255 (inclusive) diff --git a/reference/image/functions/imagecolormatch.xml b/reference/image/functions/imagecolormatch.xml index 9289c985ff..6cd4758dda 100644 --- a/reference/image/functions/imagecolormatch.xml +++ b/reference/image/functions/imagecolormatch.xml @@ -1,5 +1,5 @@ - + imagecolormatch @@ -12,9 +12,9 @@ resourceimage1 resourceimage2 - - &warn.undocumented.func; - + + Makes the colors of the palette version of an image more closely match the true color version + &reftitle.parameters; diff --git a/reference/image/functions/imagecolorsforindex.xml b/reference/image/functions/imagecolorsforindex.xml index 20d24101fe..0a08a7c8b1 100644 --- a/reference/image/functions/imagecolorsforindex.xml +++ b/reference/image/functions/imagecolorsforindex.xml @@ -1,5 +1,5 @@ - + imagecolorsforindex @@ -25,6 +25,7 @@ index + The color index diff --git a/reference/image/functions/imageconvolution.xml b/reference/image/functions/imageconvolution.xml index 08acfc7c16..bba682598b 100644 --- a/reference/image/functions/imageconvolution.xml +++ b/reference/image/functions/imageconvolution.xml @@ -1,5 +1,5 @@ - + imageconvolution @@ -44,6 +44,7 @@ offset + Color offset diff --git a/reference/image/functions/imagecreatefromgd.xml b/reference/image/functions/imagecreatefromgd.xml index 8de42cfa59..35c5b14397 100644 --- a/reference/image/functions/imagecreatefromgd.xml +++ b/reference/image/functions/imagecreatefromgd.xml @@ -1,5 +1,5 @@ - + imagecreatefromgd @@ -12,7 +12,7 @@ stringfilename - &warn.undocumented.func; + Create a new image from GD file or URL &tip.fopen-wrapper; @@ -24,12 +24,19 @@ filename + Path to the GD file + + &reftitle.returnvalues; + + Returns an image resource identifier on success, &false; on errors. + + &reftitle.notes; &warn.no-win32-fopen-wrapper; diff --git a/reference/image/functions/imagecreatefromgd2.xml b/reference/image/functions/imagecreatefromgd2.xml index bebb2f40e2..6289aee9fd 100644 --- a/reference/image/functions/imagecreatefromgd2.xml +++ b/reference/image/functions/imagecreatefromgd2.xml @@ -1,5 +1,5 @@ - + imagecreatefromgd2 @@ -11,7 +11,9 @@ resourceimagecreatefromgd2 stringfilename - &warn.undocumented.func; + + Create a new image from GD2 file or URL + &tip.fopen-wrapper; @@ -22,12 +24,19 @@ filename + Path to the GD2 image + + &reftitle.returnvalues; + + Returns an image resource identifier on success, &false; on errors. + + &reftitle.notes; ¬e.gd.2; diff --git a/reference/image/functions/imagecreatefromgd2part.xml b/reference/image/functions/imagecreatefromgd2part.xml index 54af8f4eb7..a7c6c6e072 100644 --- a/reference/image/functions/imagecreatefromgd2part.xml +++ b/reference/image/functions/imagecreatefromgd2part.xml @@ -1,5 +1,5 @@ - + imagecreatefromgd2part @@ -15,7 +15,9 @@ intwidth intheight - &warn.undocumented.func; + + Create a new image from a given part of GD2 file or URL + &tip.fopen-wrapper; @@ -26,6 +28,7 @@ filename + Path to the GD2 image @@ -33,6 +36,7 @@ srcX + x-coordinate of source point @@ -40,6 +44,7 @@ srcY + y-coordinate of source point @@ -47,6 +52,7 @@ width + Source width @@ -54,12 +60,19 @@ height + Source height + + &reftitle.returnvalues; + + Returns an image resource identifier on success, &false; on errors. + + &reftitle.notes; ¬e.gd.2; diff --git a/reference/image/functions/imagecreatefromgif.xml b/reference/image/functions/imagecreatefromgif.xml index e225c887eb..ec6ca14082 100644 --- a/reference/image/functions/imagecreatefromgif.xml +++ b/reference/image/functions/imagecreatefromgif.xml @@ -1,5 +1,5 @@ - + imagecreatefromgif @@ -44,7 +44,7 @@ imagegif($img); &example.outputs.similar; - + diff --git a/reference/image/functions/imagecreatefrompng.xml b/reference/image/functions/imagecreatefrompng.xml index a898889abd..82367c96b4 100644 --- a/reference/image/functions/imagecreatefrompng.xml +++ b/reference/image/functions/imagecreatefrompng.xml @@ -1,5 +1,5 @@ - + imagecreatefrompng @@ -47,7 +47,7 @@ imagepng($img); &example.outputs.similar; - + diff --git a/reference/image/functions/imagecreatefromxpm.xml b/reference/image/functions/imagecreatefromxpm.xml index a42d26589d..c8b69463f8 100644 --- a/reference/image/functions/imagecreatefromxpm.xml +++ b/reference/image/functions/imagecreatefromxpm.xml @@ -1,5 +1,5 @@ - + imagecreatefromxpm @@ -41,7 +41,7 @@ &reftitle.returnvalues; ¬e.bundled.gd; - &warn.no-win32-fopen-wrapper; + ¬e.no-windows;