From e4f35b22e20981a48a70bf78d384dd91c005af40 Mon Sep 17 00:00:00 2001 From: Kalle Sommer Nielsen Date: Tue, 5 Aug 2008 07:32:05 +0000 Subject: [PATCH] Fix various bugs inside gd documentation part 3/3 git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@264210 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../functions/image-type-to-extension.xml | 30 ++++++- .../functions/image-type-to-mime-type.xml | 4 +- reference/image/functions/image2wbmp.xml | 4 +- reference/image/functions/imagearc.xml | 12 +-- reference/image/functions/imagechar.xml | 10 +-- reference/image/functions/imagecharup.xml | 10 +-- .../image/functions/imagecolorallocate.xml | 8 +- .../functions/imagecolorallocatealpha.xml | 8 +- reference/image/functions/imagecolorat.xml | 6 +- .../image/functions/imagecolorclosest.xml | 8 +- .../functions/imagecolorclosestalpha.xml | 8 +- .../image/functions/imagecolorclosesthwb.xml | 8 +- .../image/functions/imagecolordeallocate.xml | 4 +- reference/image/functions/imagecolorexact.xml | 8 +- .../image/functions/imagecolorexactalpha.xml | 8 +- reference/image/functions/imagecolormatch.xml | 8 +- .../image/functions/imagecolorresolve.xml | 8 +- .../functions/imagecolorresolvealpha.xml | 8 +- reference/image/functions/imagecolorset.xml | 10 +-- .../image/functions/imagecolorsforindex.xml | 4 +- .../image/functions/imagecolortransparent.xml | 4 +- .../image/functions/imageconvolution.xml | 4 +- reference/image/functions/imagecopy.xml | 18 ++--- reference/image/functions/imagecopymerge.xml | 18 ++--- .../image/functions/imagecopymergegray.xml | 18 ++--- .../image/functions/imagecopyresampled.xml | 22 ++--- .../image/functions/imagecopyresized.xml | 22 ++--- reference/image/functions/imagecreate.xml | 6 +- .../image/functions/imagecreatefromgd.xml | 6 +- .../image/functions/imagecreatefromgd2.xml | 6 +- .../functions/imagecreatefromgd2part.xml | 14 ++-- .../image/functions/imagecreatefromgif.xml | 5 +- .../image/functions/imagecreatefromjpeg.xml | 5 +- .../image/functions/imagecreatefrompng.xml | 5 +- .../image/functions/imagecreatefromstring.xml | 5 +- .../image/functions/imagecreatefromwbmp.xml | 4 +- .../image/functions/imagecreatefromxbm.xml | 4 +- .../image/functions/imagecreatefromxpm.xml | 4 +- .../image/functions/imagecreatetruecolor.xml | 6 +- reference/image/functions/imagedashedline.xml | 66 ++++++++++++++- reference/image/functions/imagedestroy.xml | 23 +++++- reference/image/functions/imageellipse.xml | 12 +-- reference/image/functions/imagefill.xml | 8 +- reference/image/functions/imagefilledarc.xml | 16 ++-- .../image/functions/imagefilledellipse.xml | 12 +-- .../image/functions/imagefilledpolygon.xml | 8 +- .../image/functions/imagefilledrectangle.xml | 12 +-- .../image/functions/imagefilltoborder.xml | 10 +-- reference/image/functions/imagefilter.xml | 54 ++++++++++++- reference/image/functions/imageftbbox.xml | 80 ++++++++++++++++++- reference/image/functions/imagefttext.xml | 61 ++++++++++++-- .../image/functions/imagegammacorrect.xml | 6 +- reference/image/functions/imagegd2.xml | 3 +- reference/image/functions/imagegrabwindow.xml | 6 +- reference/image/functions/imageline.xml | 12 +-- .../image/functions/imagepalettecopy.xml | 6 +- reference/image/functions/imagepolygon.xml | 6 +- reference/image/functions/imagepsbbox.xml | 15 +++- reference/image/functions/imagepsfreefont.xml | 6 +- reference/image/functions/imagepsloadfont.xml | 4 +- .../image/functions/imagepsslantfont.xml | 3 +- reference/image/functions/imagepstext.xml | 17 ++-- reference/image/functions/imagerectangle.xml | 10 +-- reference/image/functions/imagerotate.xml | 15 +--- reference/image/functions/imagesetbrush.xml | 4 +- reference/image/functions/imagesetpixel.xml | 8 +- .../image/functions/imagesetthickness.xml | 4 +- reference/image/functions/imagesettile.xml | 4 +- reference/image/functions/imagestring.xml | 10 +-- reference/image/functions/imagestringup.xml | 10 +-- reference/image/functions/imagettfbbox.xml | 10 +-- reference/image/functions/imagettftext.xml | 6 +- reference/image/functions/iptcembed.xml | 24 +++++- reference/image/functions/iptcparse.xml | 34 ++++++-- reference/image/functions/jpeg2wbmp.xml | 12 +-- reference/image/functions/png2wbmp.xml | 12 +-- 76 files changed, 647 insertions(+), 312 deletions(-) diff --git a/reference/image/functions/image-type-to-extension.xml b/reference/image/functions/image-type-to-extension.xml index 4efd9e6d9e..1b307913d4 100644 --- a/reference/image/functions/image-type-to-extension.xml +++ b/reference/image/functions/image-type-to-extension.xml @@ -1,5 +1,5 @@ - + image_type_to_extension @@ -46,6 +46,34 @@ A string with the extension corresponding to the given image type. + + &reftitle.notes; + + + This function does not require the GD image library. + + + + + &reftitle.examples; + + + <function>image_type_to_extension</function> example + + +]]> + + + + + image_type_to_mime_type @@ -25,7 +25,7 @@ imagetype - One of the IMAGETYPE_XXX constants + One of the IMAGETYPE_XXX constants. diff --git a/reference/image/functions/image2wbmp.xml b/reference/image/functions/image2wbmp.xml index f950758e00..5f6adf7fae 100644 --- a/reference/image/functions/image2wbmp.xml +++ b/reference/image/functions/image2wbmp.xml @@ -1,5 +1,5 @@ - + image2wbmp @@ -36,7 +36,7 @@ threshold - Threshold value, between 0 and 255 (inclusive) + Threshold value, between 0 and 255 (inclusive). diff --git a/reference/image/functions/imagearc.xml b/reference/image/functions/imagearc.xml index bb6eb9356d..1785e653c2 100644 --- a/reference/image/functions/imagearc.xml +++ b/reference/image/functions/imagearc.xml @@ -1,5 +1,5 @@ - + imagearc @@ -32,7 +32,7 @@ cx - x-coordinate of the center + x-coordinate of the center. @@ -40,7 +40,7 @@ cy - y-coordinate of the center + y-coordinate of the center. @@ -48,7 +48,7 @@ width - The arc width + The arc width. @@ -56,7 +56,7 @@ height - The arc height + The arc height. @@ -83,7 +83,7 @@ A color identifier created with - imagecolorallocate + imagecolorallocate. diff --git a/reference/image/functions/imagechar.xml b/reference/image/functions/imagechar.xml index 8836f92cc2..8097a847c6 100644 --- a/reference/image/functions/imagechar.xml +++ b/reference/image/functions/imagechar.xml @@ -1,5 +1,5 @@ - + imagechar @@ -34,7 +34,7 @@ x - x-coordinate of the start + x-coordinate of the start. @@ -42,7 +42,7 @@ y - y-coordinate of the start + y-coordinate of the start. @@ -50,7 +50,7 @@ c - The character to draw + The character to draw. @@ -59,7 +59,7 @@ A color identifier created with - imagecolorallocate + imagecolorallocate. diff --git a/reference/image/functions/imagecharup.xml b/reference/image/functions/imagecharup.xml index 638a428ea7..9c893a6396 100644 --- a/reference/image/functions/imagecharup.xml +++ b/reference/image/functions/imagecharup.xml @@ -1,5 +1,5 @@ - + imagecharup @@ -31,7 +31,7 @@ x - x-coordinate of the start + x-coordinate of the start. @@ -39,7 +39,7 @@ y - y-coordinate of the start + y-coordinate of the start. @@ -47,7 +47,7 @@ c - The character to draw + The character to draw. @@ -56,7 +56,7 @@ A color identifier created with - imagecolorallocate + imagecolorallocate. diff --git a/reference/image/functions/imagecolorallocate.xml b/reference/image/functions/imagecolorallocate.xml index a9f8d3a2f2..d8c21e5fa1 100644 --- a/reference/image/functions/imagecolorallocate.xml +++ b/reference/image/functions/imagecolorallocate.xml @@ -1,5 +1,5 @@ - + imagecolorallocate @@ -40,7 +40,7 @@ red - Value of red component + Value of red component. @@ -48,7 +48,7 @@ green - Value of green component + Value of green component. @@ -56,7 +56,7 @@ blue - Value of blue component + Value of blue component. diff --git a/reference/image/functions/imagecolorallocatealpha.xml b/reference/image/functions/imagecolorallocatealpha.xml index f47982634b..2767d4df91 100644 --- a/reference/image/functions/imagecolorallocatealpha.xml +++ b/reference/image/functions/imagecolorallocatealpha.xml @@ -1,5 +1,5 @@ - + imagecolorallocatealpha @@ -30,7 +30,7 @@ red - Value of red component + Value of red component. @@ -38,7 +38,7 @@ green - Value of green component + Value of green component. @@ -46,7 +46,7 @@ blue - Value of blue component + Value of blue component. diff --git a/reference/image/functions/imagecolorat.xml b/reference/image/functions/imagecolorat.xml index b9f7ac9bb9..fbb94f954b 100644 --- a/reference/image/functions/imagecolorat.xml +++ b/reference/image/functions/imagecolorat.xml @@ -1,5 +1,5 @@ - + imagecolorat @@ -33,7 +33,7 @@ x - x-coordinate of the point + x-coordinate of the point. @@ -41,7 +41,7 @@ y - y-coordinate of the point + y-coordinate of the point. diff --git a/reference/image/functions/imagecolorclosest.xml b/reference/image/functions/imagecolorclosest.xml index da9c29fe09..36b505d0c6 100644 --- a/reference/image/functions/imagecolorclosest.xml +++ b/reference/image/functions/imagecolorclosest.xml @@ -1,5 +1,5 @@ - + imagecolorclosest @@ -37,7 +37,7 @@ red - Value of red component + Value of red component. @@ -45,7 +45,7 @@ green - Value of green component + Value of green component. @@ -53,7 +53,7 @@ blue - Value of blue component + Value of blue component. diff --git a/reference/image/functions/imagecolorclosestalpha.xml b/reference/image/functions/imagecolorclosestalpha.xml index 2b7dd2746d..1f36a82afb 100644 --- a/reference/image/functions/imagecolorclosestalpha.xml +++ b/reference/image/functions/imagecolorclosestalpha.xml @@ -1,5 +1,5 @@ - + imagecolorclosestalpha @@ -30,7 +30,7 @@ red - Value of red component + Value of red component. @@ -38,7 +38,7 @@ green - Value of green component + Value of green component. @@ -46,7 +46,7 @@ blue - Value of blue component + Value of blue component. diff --git a/reference/image/functions/imagecolorclosesthwb.xml b/reference/image/functions/imagecolorclosesthwb.xml index 1ce88aad1a..05bce9b13c 100644 --- a/reference/image/functions/imagecolorclosesthwb.xml +++ b/reference/image/functions/imagecolorclosesthwb.xml @@ -1,5 +1,5 @@ - + imagecolorclosesthwb @@ -30,7 +30,7 @@ red - Value of red component + Value of red component. @@ -38,7 +38,7 @@ green - Value of green component + Value of green component. @@ -46,7 +46,7 @@ blue - Value of blue component + Value of blue component. diff --git a/reference/image/functions/imagecolordeallocate.xml b/reference/image/functions/imagecolordeallocate.xml index 8c4cacf8f6..2e4f55f4d7 100644 --- a/reference/image/functions/imagecolordeallocate.xml +++ b/reference/image/functions/imagecolordeallocate.xml @@ -1,5 +1,5 @@ - + imagecolordeallocate @@ -27,7 +27,7 @@ color - The color identifier + The color identifier. diff --git a/reference/image/functions/imagecolorexact.xml b/reference/image/functions/imagecolorexact.xml index aabe611abb..f193131940 100644 --- a/reference/image/functions/imagecolorexact.xml +++ b/reference/image/functions/imagecolorexact.xml @@ -1,5 +1,5 @@ - + imagecolorexact @@ -32,7 +32,7 @@ red - Value of red component + Value of red component. @@ -40,7 +40,7 @@ green - Value of green component + Value of green component. @@ -48,7 +48,7 @@ blue - Value of blue component + Value of blue component. diff --git a/reference/image/functions/imagecolorexactalpha.xml b/reference/image/functions/imagecolorexactalpha.xml index 954426ab72..af6e4a4d04 100644 --- a/reference/image/functions/imagecolorexactalpha.xml +++ b/reference/image/functions/imagecolorexactalpha.xml @@ -1,5 +1,5 @@ - + imagecolorexactalpha @@ -29,7 +29,7 @@ red - Value of red component + Value of red component. @@ -37,7 +37,7 @@ green - Value of green component + Value of green component. @@ -45,7 +45,7 @@ blue - Value of blue component + Value of blue component. diff --git a/reference/image/functions/imagecolormatch.xml b/reference/image/functions/imagecolormatch.xml index 6cd4758dda..e768cc56b3 100644 --- a/reference/image/functions/imagecolormatch.xml +++ b/reference/image/functions/imagecolormatch.xml @@ -1,5 +1,5 @@ - + imagecolormatch @@ -13,7 +13,7 @@ resourceimage2 - Makes the colors of the palette version of an image more closely match the true color version + Makes the colors of the palette version of an image more closely match the true color version. @@ -24,7 +24,7 @@ image1 - A truecolor image link resource + A truecolor image link resource. @@ -33,7 +33,7 @@ A palette image link resource pointing to an image that has the same - size as image1 + size as image1. diff --git a/reference/image/functions/imagecolorresolve.xml b/reference/image/functions/imagecolorresolve.xml index 2361450470..dcab1d389b 100644 --- a/reference/image/functions/imagecolorresolve.xml +++ b/reference/image/functions/imagecolorresolve.xml @@ -1,5 +1,5 @@ - + imagecolorresolve @@ -33,7 +33,7 @@ red - Value of red component + Value of red component. @@ -41,7 +41,7 @@ green - Value of green component + Value of green component. @@ -49,7 +49,7 @@ blue - Value of blue component + Value of blue component. diff --git a/reference/image/functions/imagecolorresolvealpha.xml b/reference/image/functions/imagecolorresolvealpha.xml index a2fa200b69..d7611278bd 100644 --- a/reference/image/functions/imagecolorresolvealpha.xml +++ b/reference/image/functions/imagecolorresolvealpha.xml @@ -1,5 +1,5 @@ - + imagecolorresolvealpha @@ -30,7 +30,7 @@ red - Value of red component + Value of red component. @@ -38,7 +38,7 @@ green - Value of green component + Value of green component. @@ -46,7 +46,7 @@ blue - Value of blue component + Value of blue component. diff --git a/reference/image/functions/imagecolorset.xml b/reference/image/functions/imagecolorset.xml index f0aaa818df..8c9648050a 100644 --- a/reference/image/functions/imagecolorset.xml +++ b/reference/image/functions/imagecolorset.xml @@ -1,5 +1,5 @@ - + imagecolorset @@ -31,7 +31,7 @@ index - An index in the palette + An index in the palette. @@ -39,7 +39,7 @@ red - Value of red component + Value of red component. @@ -47,7 +47,7 @@ green - Value of green component + Value of green component. @@ -55,7 +55,7 @@ blue - Value of blue component + Value of blue component. diff --git a/reference/image/functions/imagecolorsforindex.xml b/reference/image/functions/imagecolorsforindex.xml index 0a08a7c8b1..a7185d94c1 100644 --- a/reference/image/functions/imagecolorsforindex.xml +++ b/reference/image/functions/imagecolorsforindex.xml @@ -1,5 +1,5 @@ - + imagecolorsforindex @@ -25,7 +25,7 @@ index - The color index + The color index. diff --git a/reference/image/functions/imagecolortransparent.xml b/reference/image/functions/imagecolortransparent.xml index 1f9fe97e44..a62a139b33 100644 --- a/reference/image/functions/imagecolortransparent.xml +++ b/reference/image/functions/imagecolortransparent.xml @@ -1,5 +1,5 @@ - + imagecolortransparent @@ -26,7 +26,7 @@ A color identifier created with - imagecolorallocate + imagecolorallocate. diff --git a/reference/image/functions/imageconvolution.xml b/reference/image/functions/imageconvolution.xml index bba682598b..497b980970 100644 --- a/reference/image/functions/imageconvolution.xml +++ b/reference/image/functions/imageconvolution.xml @@ -1,5 +1,5 @@ - + imageconvolution @@ -44,7 +44,7 @@ offset - Color offset + Color offset. diff --git a/reference/image/functions/imagecopy.xml b/reference/image/functions/imagecopy.xml index be436a530e..cd7cb1e5cc 100644 --- a/reference/image/functions/imagecopy.xml +++ b/reference/image/functions/imagecopy.xml @@ -1,5 +1,5 @@ - + imagecopy @@ -36,7 +36,7 @@ dst_im - Destination image link resource + Destination image link resource. @@ -44,7 +44,7 @@ src_im - Source image link resource + Source image link resource. @@ -52,7 +52,7 @@ dst_x - x-coordinate of destination point + x-coordinate of destination point. @@ -60,7 +60,7 @@ dst_y - y-coordinate of destination point + y-coordinate of destination point. @@ -68,7 +68,7 @@ src_x - x-coordinate of source point + x-coordinate of source point. @@ -76,7 +76,7 @@ src_y - y-coordinate of source point + y-coordinate of source point. @@ -84,7 +84,7 @@ src_w - Source width + Source width. @@ -92,7 +92,7 @@ src_h - Source height + Source height. diff --git a/reference/image/functions/imagecopymerge.xml b/reference/image/functions/imagecopymerge.xml index 15b84b5c90..1bd8ac5a8b 100644 --- a/reference/image/functions/imagecopymerge.xml +++ b/reference/image/functions/imagecopymerge.xml @@ -1,5 +1,5 @@ - + imagecopymerge @@ -37,7 +37,7 @@ dst_im - Destination image link resource + Destination image link resource. @@ -45,7 +45,7 @@ src_im - Source image link resource + Source image link resource. @@ -53,7 +53,7 @@ dst_x - x-coordinate of destination point + x-coordinate of destination point. @@ -61,7 +61,7 @@ dst_y - y-coordinate of destination point + y-coordinate of destination point. @@ -69,7 +69,7 @@ src_x - x-coordinate of source point + x-coordinate of source point. @@ -77,7 +77,7 @@ src_y - y-coordinate of source point + y-coordinate of source point. @@ -85,7 +85,7 @@ src_w - Source width + Source width. @@ -93,7 +93,7 @@ src_h - Source height + Source height. diff --git a/reference/image/functions/imagecopymergegray.xml b/reference/image/functions/imagecopymergegray.xml index 91df03613e..868d251e09 100644 --- a/reference/image/functions/imagecopymergegray.xml +++ b/reference/image/functions/imagecopymergegray.xml @@ -1,5 +1,5 @@ - + imagecopymergegray @@ -42,7 +42,7 @@ dst_im - Destination image link resource + Destination image link resource. @@ -50,7 +50,7 @@ src_im - Source image link resource + Source image link resource. @@ -58,7 +58,7 @@ dst_x - x-coordinate of destination point + x-coordinate of destination point. @@ -66,7 +66,7 @@ dst_y - y-coordinate of destination point + y-coordinate of destination point. @@ -74,7 +74,7 @@ src_x - x-coordinate of source point + x-coordinate of source point. @@ -82,7 +82,7 @@ src_y - y-coordinate of source point + y-coordinate of source point. @@ -90,7 +90,7 @@ src_w - Source width + Source width. @@ -98,7 +98,7 @@ src_h - Source height + Source height. diff --git a/reference/image/functions/imagecopyresampled.xml b/reference/image/functions/imagecopyresampled.xml index 818072c614..4a64c4b2fa 100644 --- a/reference/image/functions/imagecopyresampled.xml +++ b/reference/image/functions/imagecopyresampled.xml @@ -1,5 +1,5 @@ - + imagecopyresampled @@ -53,7 +53,7 @@ dst_im - Destination image link resource + Destination image link resource. @@ -61,7 +61,7 @@ src_im - Source image link resource + Source image link resource. @@ -69,7 +69,7 @@ dst_x - x-coordinate of destination point + x-coordinate of destination point. @@ -77,7 +77,7 @@ dst_y - y-coordinate of destination point + y-coordinate of destination point. @@ -85,7 +85,7 @@ src_x - x-coordinate of source point + x-coordinate of source point. @@ -93,7 +93,7 @@ src_y - y-coordinate of source point + y-coordinate of source point. @@ -101,7 +101,7 @@ dst_w - Destination width + Destination width. @@ -109,7 +109,7 @@ dst_h - Destination height + Destination height. @@ -117,7 +117,7 @@ src_w - Source width + Source width. @@ -125,7 +125,7 @@ src_h - Source height + Source height. diff --git a/reference/image/functions/imagecopyresized.xml b/reference/image/functions/imagecopyresized.xml index 395092063e..ee700f2c3a 100644 --- a/reference/image/functions/imagecopyresized.xml +++ b/reference/image/functions/imagecopyresized.xml @@ -1,5 +1,5 @@ - + imagecopyresized @@ -53,7 +53,7 @@ dst_im - Destination image link resource + Destination image link resource. @@ -61,7 +61,7 @@ src_im - Source image link resource + Source image link resource. @@ -69,7 +69,7 @@ dst_x - x-coordinate of destination point + x-coordinate of destination point. @@ -77,7 +77,7 @@ dst_y - y-coordinate of destination point + y-coordinate of destination point. @@ -85,7 +85,7 @@ src_x - x-coordinate of source point + x-coordinate of source point. @@ -93,7 +93,7 @@ src_y - y-coordinate of source point + y-coordinate of source point. @@ -101,7 +101,7 @@ dst_w - Destination width + Destination width. @@ -109,7 +109,7 @@ dst_h - Destination height + Destination height. @@ -117,7 +117,7 @@ src_w - Source width + Source width. @@ -125,7 +125,7 @@ src_h - Source height + Source height. diff --git a/reference/image/functions/imagecreate.xml b/reference/image/functions/imagecreate.xml index 96257638ae..c57ee35cca 100644 --- a/reference/image/functions/imagecreate.xml +++ b/reference/image/functions/imagecreate.xml @@ -1,5 +1,5 @@ - + imagecreate @@ -28,7 +28,7 @@ width - The image width + The image width. @@ -36,7 +36,7 @@ height - The image height + The image height. diff --git a/reference/image/functions/imagecreatefromgd.xml b/reference/image/functions/imagecreatefromgd.xml index 35c5b14397..510b24b967 100644 --- a/reference/image/functions/imagecreatefromgd.xml +++ b/reference/image/functions/imagecreatefromgd.xml @@ -1,5 +1,5 @@ - + imagecreatefromgd @@ -12,7 +12,7 @@ stringfilename - Create a new image from GD file or URL + Create a new image from GD file or URL. &tip.fopen-wrapper; @@ -24,7 +24,7 @@ filename - Path to the GD file + Path to the GD file. diff --git a/reference/image/functions/imagecreatefromgd2.xml b/reference/image/functions/imagecreatefromgd2.xml index 6289aee9fd..ae1ca1bb73 100644 --- a/reference/image/functions/imagecreatefromgd2.xml +++ b/reference/image/functions/imagecreatefromgd2.xml @@ -1,5 +1,5 @@ - + imagecreatefromgd2 @@ -12,7 +12,7 @@ stringfilename - Create a new image from GD2 file or URL + Create a new image from GD2 file or URL. &tip.fopen-wrapper; @@ -24,7 +24,7 @@ filename - Path to the GD2 image + Path to the GD2 image. diff --git a/reference/image/functions/imagecreatefromgd2part.xml b/reference/image/functions/imagecreatefromgd2part.xml index a7c6c6e072..b32a191235 100644 --- a/reference/image/functions/imagecreatefromgd2part.xml +++ b/reference/image/functions/imagecreatefromgd2part.xml @@ -1,5 +1,5 @@ - + imagecreatefromgd2part @@ -16,7 +16,7 @@ intheight - Create a new image from a given part of GD2 file or URL + Create a new image from a given part of GD2 file or URL. &tip.fopen-wrapper; @@ -28,7 +28,7 @@ filename - Path to the GD2 image + Path to the GD2 image. @@ -36,7 +36,7 @@ srcX - x-coordinate of source point + x-coordinate of source point. @@ -44,7 +44,7 @@ srcY - y-coordinate of source point + y-coordinate of source point. @@ -52,7 +52,7 @@ width - Source width + Source width. @@ -60,7 +60,7 @@ height - Source height + Source height. diff --git a/reference/image/functions/imagecreatefromgif.xml b/reference/image/functions/imagecreatefromgif.xml index ec6ca14082..52c8ff45de 100644 --- a/reference/image/functions/imagecreatefromgif.xml +++ b/reference/image/functions/imagecreatefromgif.xml @@ -1,5 +1,5 @@ - + imagecreatefromgif @@ -38,6 +38,7 @@ function LoadGif ($imgname) header("Content-Type: image/gif"); $img = LoadGif("bogus.image"); imagegif($img); +imagedestroy($img); ?> ]]> @@ -59,7 +60,7 @@ imagegif($img); filename - Path to the GIF image + Path to the GIF image. diff --git a/reference/image/functions/imagecreatefromjpeg.xml b/reference/image/functions/imagecreatefromjpeg.xml index 41dd18fee9..49734cb970 100644 --- a/reference/image/functions/imagecreatefromjpeg.xml +++ b/reference/image/functions/imagecreatefromjpeg.xml @@ -1,5 +1,5 @@ - + imagecreatefromjpeg @@ -41,6 +41,7 @@ function LoadJpeg($imgname) header("Content-Type: image/jpeg"); $img = LoadJpeg("bogus.image"); imagejpeg($img); +imagedestroy($img); ?> ]]> @@ -62,7 +63,7 @@ imagejpeg($img); filename - Path to the JPEG image + Path to the JPEG image. diff --git a/reference/image/functions/imagecreatefrompng.xml b/reference/image/functions/imagecreatefrompng.xml index 82367c96b4..e6687c171e 100644 --- a/reference/image/functions/imagecreatefrompng.xml +++ b/reference/image/functions/imagecreatefrompng.xml @@ -1,5 +1,5 @@ - + imagecreatefrompng @@ -41,6 +41,7 @@ function LoadPNG($imgname) header("Content-Type: image/png"); $img = LoadPNG("bogus.image"); imagepng($img); +imagedestroy($img); ?> ]]> @@ -62,7 +63,7 @@ imagepng($img); filename - Path to the PNG image + Path to the PNG image. diff --git a/reference/image/functions/imagecreatefromstring.xml b/reference/image/functions/imagecreatefromstring.xml index 80929d56ef..2979e6c81a 100644 --- a/reference/image/functions/imagecreatefromstring.xml +++ b/reference/image/functions/imagecreatefromstring.xml @@ -1,5 +1,5 @@ - + imagecreatefromstring @@ -26,7 +26,7 @@ image - A string containing the image data + A string containing the image data. @@ -59,6 +59,7 @@ $im = imagecreatefromstring($data); if ($im !== false) { header('Content-Type: image/png'); imagepng($im); + imagedestroy($im); } else { echo 'An error occurred.'; diff --git a/reference/image/functions/imagecreatefromwbmp.xml b/reference/image/functions/imagecreatefromwbmp.xml index 70d92a50fd..ffda1cb8ab 100644 --- a/reference/image/functions/imagecreatefromwbmp.xml +++ b/reference/image/functions/imagecreatefromwbmp.xml @@ -1,5 +1,5 @@ - + imagecreatefromwbmp @@ -53,7 +53,7 @@ function LoadWBMP($imgname) filename - Path to the WBMP image + Path to the WBMP image. diff --git a/reference/image/functions/imagecreatefromxbm.xml b/reference/image/functions/imagecreatefromxbm.xml index 9acca800c6..566452048a 100644 --- a/reference/image/functions/imagecreatefromxbm.xml +++ b/reference/image/functions/imagecreatefromxbm.xml @@ -1,5 +1,5 @@ - + imagecreatefromxbm @@ -26,7 +26,7 @@ filename - Path to the XBM image + Path to the XBM image. diff --git a/reference/image/functions/imagecreatefromxpm.xml b/reference/image/functions/imagecreatefromxpm.xml index c8b69463f8..ca898dc620 100644 --- a/reference/image/functions/imagecreatefromxpm.xml +++ b/reference/image/functions/imagecreatefromxpm.xml @@ -1,5 +1,5 @@ - + imagecreatefromxpm @@ -25,7 +25,7 @@ filename - Path to the XPM image + Path to the XPM image. diff --git a/reference/image/functions/imagecreatetruecolor.xml b/reference/image/functions/imagecreatetruecolor.xml index be18660f3a..a2494a0d8b 100644 --- a/reference/image/functions/imagecreatetruecolor.xml +++ b/reference/image/functions/imagecreatetruecolor.xml @@ -1,5 +1,5 @@ - + imagecreatetruecolor @@ -33,7 +33,7 @@ width - Image width + Image width. @@ -41,7 +41,7 @@ height - Image height + Image height. diff --git a/reference/image/functions/imagedashedline.xml b/reference/image/functions/imagedashedline.xml index b3e612a7a4..135b1c5cf4 100644 --- a/reference/image/functions/imagedashedline.xml +++ b/reference/image/functions/imagedashedline.xml @@ -1,5 +1,5 @@ - + imagedashedline @@ -22,6 +22,70 @@ instead. + + &reftitle.parameters; + + + &gd.image.description; + + x1 + + + Upper left x coordinate. + + + + + y1 + + + Upper left y coordinate 0, 0 is the top left corner of the image. + + + + + x2 + + + Bottom right x coordinate. + + + + + y2 + + + Bottom right y coordinate. + + + + + color + + + The fill color. A color identifier created with + imagecolorallocate. + + + + + + + + &reftitle.returnvalues; + + Always returns true + + + + &reftitle.seealso; + + + imagesetstyle + imageline + + + + imagedestroy @@ -30,6 +30,27 @@ &return.success; + + &reftitle.examples; + + + Using <function>imagedestroy</function> example + + +]]> + + + + + imageellipse @@ -29,7 +29,7 @@ cx - x-coordinate of the center + x-coordinate of the center. @@ -37,7 +37,7 @@ cy - y-coordinate of the center + y-coordinate of the center. @@ -45,7 +45,7 @@ width - The ellipse width + The ellipse width. @@ -53,7 +53,7 @@ height - The ellipse height + The ellipse height. @@ -62,7 +62,7 @@ The color of the ellipse. A color identifier created with - imagecolorallocate + imagecolorallocate. diff --git a/reference/image/functions/imagefill.xml b/reference/image/functions/imagefill.xml index fb69a0db07..052f1cf3aa 100644 --- a/reference/image/functions/imagefill.xml +++ b/reference/image/functions/imagefill.xml @@ -1,5 +1,5 @@ - + imagefill @@ -29,7 +29,7 @@ x - x-coordinate of start point + x-coordinate of start point. @@ -37,7 +37,7 @@ y - y-coordinate of start point + y-coordinate of start point. @@ -46,7 +46,7 @@ The fill color. A color identifier created with - imagecolorallocate + imagecolorallocate. diff --git a/reference/image/functions/imagefilledarc.xml b/reference/image/functions/imagefilledarc.xml index e7dd299ced..b5875ffa52 100644 --- a/reference/image/functions/imagefilledarc.xml +++ b/reference/image/functions/imagefilledarc.xml @@ -1,9 +1,9 @@ - + imagefilledarc - Draw a partial ellipse and fill it + Draw a partial arc and fill it &reftitle.description; @@ -20,7 +20,7 @@ intstyle - Draws a partial ellipse centered at the specified coordinate in the + Draws a partial arc centered at the specified coordinate in the given image. @@ -33,7 +33,7 @@ cx - x-coordinate of the center + x-coordinate of the center. @@ -41,7 +41,7 @@ cy - y-coordinate of the center + y-coordinate of the center. @@ -49,7 +49,7 @@ width - The arc width + The arc width. @@ -57,7 +57,7 @@ height - The arc height + The arc height. @@ -84,7 +84,7 @@ A color identifier created with - imagecolorallocate + imagecolorallocate. diff --git a/reference/image/functions/imagefilledellipse.xml b/reference/image/functions/imagefilledellipse.xml index 21f4e795a1..75e7369be3 100644 --- a/reference/image/functions/imagefilledellipse.xml +++ b/reference/image/functions/imagefilledellipse.xml @@ -1,5 +1,5 @@ - + imagefilledellipse @@ -30,7 +30,7 @@ cx - x-coordinate of the center + x-coordinate of the center. @@ -38,7 +38,7 @@ cy - y-coordinate of the center + y-coordinate of the center. @@ -46,7 +46,7 @@ width - The ellipse width + The ellipse width. @@ -54,7 +54,7 @@ height - The ellipse height + The ellipse height. @@ -63,7 +63,7 @@ The fill color. A color identifier created with - imagecolorallocate + imagecolorallocate. diff --git a/reference/image/functions/imagefilledpolygon.xml b/reference/image/functions/imagefilledpolygon.xml index 72ff61327d..4d7d7ccffd 100644 --- a/reference/image/functions/imagefilledpolygon.xml +++ b/reference/image/functions/imagefilledpolygon.xml @@ -1,5 +1,5 @@ - + imagefilledpolygon @@ -29,7 +29,7 @@ An array containing the x and y - coordinates of the polygons vertices consecutively + coordinates of the polygons vertices consecutively. @@ -37,7 +37,7 @@ num_points - Total number of vertices, which must be bigger than 3 + Total number of vertices, which must be bigger than 3. @@ -46,7 +46,7 @@ A color identifier created with - imagecolorallocate + imagecolorallocate. diff --git a/reference/image/functions/imagefilledrectangle.xml b/reference/image/functions/imagefilledrectangle.xml index 9fc9135e0a..784c9e2501 100644 --- a/reference/image/functions/imagefilledrectangle.xml +++ b/reference/image/functions/imagefilledrectangle.xml @@ -1,5 +1,5 @@ - + imagefilledrectangle @@ -31,7 +31,7 @@ x1 - x-coordinate for point 1 + x-coordinate for point 1. @@ -39,7 +39,7 @@ y1 - y-coordinate for point 1 + y-coordinate for point 1. @@ -47,7 +47,7 @@ x2 - x-coordinate for point 2 + x-coordinate for point 2. @@ -55,7 +55,7 @@ y2 - y-coordinate for point 2 + y-coordinate for point 2. @@ -64,7 +64,7 @@ The fill color. A color identifier created with - imagecolorallocate + imagecolorallocate. diff --git a/reference/image/functions/imagefilltoborder.xml b/reference/image/functions/imagefilltoborder.xml index f62632d8d0..65a49937a0 100644 --- a/reference/image/functions/imagefilltoborder.xml +++ b/reference/image/functions/imagefilltoborder.xml @@ -1,5 +1,5 @@ - + imagefilltoborder @@ -32,7 +32,7 @@ x - x-coordinate of start + x-coordinate of start. @@ -40,7 +40,7 @@ y - y-coordinate of start + y-coordinate of start. @@ -49,7 +49,7 @@ The border color. A color identifier created with - imagecolorallocate + imagecolorallocate. @@ -58,7 +58,7 @@ The fill color. A color identifier created with - imagecolorallocate + imagecolorallocate. diff --git a/reference/image/functions/imagefilter.xml b/reference/image/functions/imagefilter.xml index 39f3e06759..20b43f3be4 100644 --- a/reference/image/functions/imagefilter.xml +++ b/reference/image/functions/imagefilter.xml @@ -1,5 +1,5 @@ - + imagefilter @@ -111,6 +111,28 @@ arg1 + + + + IMG_FILTER_BRIGHTNESS: Brightness level. + + + + + IMG_FILTER_CONTRAST: Contrast level. + + + + + IMG_FILTER_COLORIZE: Value of red component. + + + + + IMG_FILTER_SMOOTH: Smoothness level. + + + @@ -118,6 +140,13 @@ arg2 + + + + IMG_FILTER_COLORIZE: Value of green component. + + + @@ -125,6 +154,29 @@ arg3 + + + + IMG_FILTER_COLORIZE: Value of blue component. + + + + + + + + arg4 + + + + + + IMG_FILTER_COLORIZE: Alpha channel, A value + between 0 and 127. 0 indicates completely opaque while 127 indicates + completely transparent. + + + diff --git a/reference/image/functions/imageftbbox.xml b/reference/image/functions/imageftbbox.xml index 96e08c20d6..6685d08828 100644 --- a/reference/image/functions/imageftbbox.xml +++ b/reference/image/functions/imageftbbox.xml @@ -1,5 +1,5 @@ - + imageftbbox @@ -11,11 +11,10 @@ arrayimageftbbox floatsize floatangle - stringfont_file + stringfontfile stringtext arrayextrainfo - &warn.undocumented.func; &reftitle.parameters; @@ -25,6 +24,7 @@ size + The font size in pixels. @@ -32,13 +32,19 @@ angle + Angle in degrees in which text will be + measured. - font_file + fontfile + The name of the TrueType font file (can be a URL). Depending on + which version of the GD library that PHP is using, it may attempt to + search for files that do not begin with a leading '/' by appending + '.ttf' to the filename and searching along a library-defined font path. @@ -46,6 +52,7 @@ text + The string to be measured. @@ -53,6 +60,25 @@ extrainfo + + Possible array indexes for <parameter>extrainfo</parameter> + + + + Key + Type + Meaning + + + + + linespacing + float + Defines drawing linespacing + + + +
@@ -62,6 +88,52 @@ &reftitle.returnvalues; + imageftbbox returns an array with 8 + elements representing four points making the bounding box of the + text: + + + + + 0 + lower left corner, X position + + + 1 + lower left corner, Y position + + + 2 + lower right corner, X position + + + 3 + lower right corner, Y position + + + 4 + upper right corner, X position + + + 5 + upper right corner, Y position + + + 6 + upper left corner, X position + + + 7 + upper left corner, Y position + + + + + + + The points are relative to the text regardless of the + angle, so "upper left" means in the top left-hand + corner seeing the text horizontally. diff --git a/reference/image/functions/imagefttext.xml b/reference/image/functions/imagefttext.xml index 7712670f70..a531b582d9 100644 --- a/reference/image/functions/imagefttext.xml +++ b/reference/image/functions/imagefttext.xml @@ -1,5 +1,5 @@ - + imagefttext @@ -15,7 +15,7 @@ intx inty intcolor - stringfont_file + stringfontfile stringtext arrayextrainfo @@ -28,7 +28,7 @@ size - The font size to use in points + The font size to use in points. @@ -69,15 +69,45 @@ color - The index of the desired color for the text, see imagecolorexact + The index of the desired color for the text, see + imagecolorexact. - font_file + fontfile - The full path to the font being used. + The path to the TrueType font you wish to use. + + + Depending on which version of the GD library PHP is using, when + fontfile does not begin with a leading + / then .ttf will be appended + to the filename and the library will attempt to search for that + filename along a library-defined font path. + + + When using versions of the GD library lower than 2.0.18, a space character, + rather than a semicolon, was used as the 'path separator' for different font files. + Unintentional use of this feature will result in the warning message: + Warning: Could not find/open font. For these affected versions, the + only solution is moving the font to a path which does not contain spaces. + + + In many cases where a font resides in the same directory as the script using it + the following trick will alleviate any include problems. + + +]]> + @@ -93,6 +123,25 @@ extrainfo + + Possible array indexes for <parameter>extrainfo</parameter> + + + + Key + Type + Meaning + + + + + linespacing + float + Defines drawing linespacing + + + +
diff --git a/reference/image/functions/imagegammacorrect.xml b/reference/image/functions/imagegammacorrect.xml index d63f2fc32a..809df0c218 100644 --- a/reference/image/functions/imagegammacorrect.xml +++ b/reference/image/functions/imagegammacorrect.xml @@ -1,5 +1,5 @@ - + imagegammacorrect @@ -27,7 +27,7 @@ inputgamma - The input gamma + The input gamma. @@ -35,7 +35,7 @@ outputgamma - The output gamma + The output gamma. diff --git a/reference/image/functions/imagegd2.xml b/reference/image/functions/imagegd2.xml index 91edecdb2c..6d5a317327 100644 --- a/reference/image/functions/imagegd2.xml +++ b/reference/image/functions/imagegd2.xml @@ -1,5 +1,5 @@ - + imagegd2 @@ -36,6 +36,7 @@ chunk_size + Chunk size. diff --git a/reference/image/functions/imagegrabwindow.xml b/reference/image/functions/imagegrabwindow.xml index 443655e8c0..690e4ee6be 100644 --- a/reference/image/functions/imagegrabwindow.xml +++ b/reference/image/functions/imagegrabwindow.xml @@ -1,5 +1,5 @@ - + imagegrabwindow @@ -26,7 +26,7 @@ window - The HWND window ID + The HWND window ID. @@ -34,7 +34,7 @@ client_area - Include the client area of the application window + Include the client area of the application window. diff --git a/reference/image/functions/imageline.xml b/reference/image/functions/imageline.xml index 0752696a1b..c08f80bb01 100644 --- a/reference/image/functions/imageline.xml +++ b/reference/image/functions/imageline.xml @@ -1,5 +1,5 @@ - + imageline @@ -29,7 +29,7 @@ x1 - x-coordinate for first point + x-coordinate for first point. @@ -37,7 +37,7 @@ y1 - y-coordinate for first point + y-coordinate for first point. @@ -45,7 +45,7 @@ x2 - x-coordinate for second point + x-coordinate for second point. @@ -53,7 +53,7 @@ y2 - y-coordinate for second point + y-coordinate for second point. @@ -62,7 +62,7 @@ The line color. A color identifier created with - imagecolorallocate + imagecolorallocate. diff --git a/reference/image/functions/imagepalettecopy.xml b/reference/image/functions/imagepalettecopy.xml index b47845eaea..6394b5f3f5 100644 --- a/reference/image/functions/imagepalettecopy.xml +++ b/reference/image/functions/imagepalettecopy.xml @@ -1,5 +1,5 @@ - + imagepalettecopy @@ -26,7 +26,7 @@ destination - The destination image resource + The destination image resource. @@ -34,7 +34,7 @@ source - The source image resource + The source image resource. diff --git a/reference/image/functions/imagepolygon.xml b/reference/image/functions/imagepolygon.xml index 46a2ce0473..e07dbce03d 100644 --- a/reference/image/functions/imagepolygon.xml +++ b/reference/image/functions/imagepolygon.xml @@ -1,5 +1,5 @@ - + imagepolygon @@ -37,7 +37,7 @@ num_points - Total number of points (vertices) + Total number of points (vertices). @@ -46,7 +46,7 @@ A color identifier created with - imagecolorallocate + imagecolorallocate. diff --git a/reference/image/functions/imagepsbbox.xml b/reference/image/functions/imagepsbbox.xml index a93e493271..5e7fb3587b 100644 --- a/reference/image/functions/imagepsbbox.xml +++ b/reference/image/functions/imagepsbbox.xml @@ -1,5 +1,5 @@ - + imagepsbbox @@ -10,13 +10,13 @@ arrayimagepsbbox stringtext - intfont + resourcefont intsize arrayimagepsbbox stringtext - intfont + resourcefont intsize intspace inttightness @@ -44,7 +44,14 @@ - &gd.font.description; + + font_index + + + A font resource, returned by imagepsloadfont. + + + size diff --git a/reference/image/functions/imagepsfreefont.xml b/reference/image/functions/imagepsfreefont.xml index 81ef2ad038..04225472d1 100644 --- a/reference/image/functions/imagepsfreefont.xml +++ b/reference/image/functions/imagepsfreefont.xml @@ -1,5 +1,5 @@ - + imagepsfreefont @@ -9,7 +9,7 @@ &reftitle.description; boolimagepsfreefont - resourcefontindex + resourcefont_index imagepsfreefont frees memory used by a PostScript @@ -21,7 +21,7 @@ - fontindex + font_index A font resource, returned by imagepsloadfont. diff --git a/reference/image/functions/imagepsloadfont.xml b/reference/image/functions/imagepsloadfont.xml index c6f02750e2..253762a7e6 100644 --- a/reference/image/functions/imagepsloadfont.xml +++ b/reference/image/functions/imagepsloadfont.xml @@ -1,5 +1,5 @@ - + imagepsloadfont @@ -24,7 +24,7 @@ filename - Path to the Postscript font file + Path to the Postscript font file. diff --git a/reference/image/functions/imagepsslantfont.xml b/reference/image/functions/imagepsslantfont.xml index bc7c7dbcbe..97d918b444 100644 --- a/reference/image/functions/imagepsslantfont.xml +++ b/reference/image/functions/imagepsslantfont.xml @@ -1,5 +1,5 @@ - + imagepsslantfont @@ -32,6 +32,7 @@ slant + Slant level. diff --git a/reference/image/functions/imagepstext.xml b/reference/image/functions/imagepstext.xml index 257e60df2c..9769bd9ea6 100644 --- a/reference/image/functions/imagepstext.xml +++ b/reference/image/functions/imagepstext.xml @@ -1,5 +1,5 @@ - + imagepstext @@ -11,7 +11,7 @@ arrayimagepstext resourceimage stringtext - resourcefont + resourcefont_index intsize intforeground intbackground @@ -43,7 +43,14 @@ - &gd.font.description; + + font_index + + + A font resource, returned by imagepsloadfont. + + + size @@ -75,7 +82,7 @@ x - x-coordinate for the lower-left corner of the first character + x-coordinate for the lower-left corner of the first character. @@ -83,7 +90,7 @@ y - y-coordinate for the lower-left corner of the first character + y-coordinate for the lower-left corner of the first character. diff --git a/reference/image/functions/imagerectangle.xml b/reference/image/functions/imagerectangle.xml index 92ee0e1d2a..bf763eee44 100644 --- a/reference/image/functions/imagerectangle.xml +++ b/reference/image/functions/imagerectangle.xml @@ -1,5 +1,5 @@ - + imagerectangle @@ -30,7 +30,7 @@ x1 - Upper left x coordinate + Upper left x coordinate. @@ -47,7 +47,7 @@ x2 - Bottom right x coordinate + Bottom right x coordinate. @@ -55,7 +55,7 @@ y2 - Bottom right y coordinate + Bottom right y coordinate. @@ -64,7 +64,7 @@ A color identifier created with - imagecolorallocate + imagecolorallocate. diff --git a/reference/image/functions/imagerotate.xml b/reference/image/functions/imagerotate.xml index 25bf1da154..092b554823 100644 --- a/reference/image/functions/imagerotate.xml +++ b/reference/image/functions/imagerotate.xml @@ -1,5 +1,5 @@ - + imagerotate @@ -9,13 +9,13 @@ &reftitle.description; resourceimagerotate - resourcesource_image + resourceimage floatangle intbgd_color intignore_transparent - Rotates the source_image image using the given + Rotates the image image using the given angle in degrees. @@ -30,14 +30,7 @@ &reftitle.parameters; - - source_image - - - The source image link - - - + &gd.image.description; angle diff --git a/reference/image/functions/imagesetbrush.xml b/reference/image/functions/imagesetbrush.xml index b02e8038bc..74cedd9b91 100644 --- a/reference/image/functions/imagesetbrush.xml +++ b/reference/image/functions/imagesetbrush.xml @@ -1,5 +1,5 @@ - + imagesetbrush @@ -29,7 +29,7 @@ brush - An image resource + An image resource. diff --git a/reference/image/functions/imagesetpixel.xml b/reference/image/functions/imagesetpixel.xml index 853112289f..065950a591 100644 --- a/reference/image/functions/imagesetpixel.xml +++ b/reference/image/functions/imagesetpixel.xml @@ -1,5 +1,5 @@ - + imagesetpixel @@ -28,7 +28,7 @@ x - x-coordinate + x-coordinate. @@ -36,7 +36,7 @@ y - y-coordinate + y-coordinate. @@ -45,7 +45,7 @@ A color identifier created with - imagecolorallocate + imagecolorallocate. diff --git a/reference/image/functions/imagesetthickness.xml b/reference/image/functions/imagesetthickness.xml index 74530a8b57..3c23ecf1a7 100644 --- a/reference/image/functions/imagesetthickness.xml +++ b/reference/image/functions/imagesetthickness.xml @@ -1,5 +1,5 @@ - + imagesetthickness @@ -27,7 +27,7 @@ thickness - Thickness, in pixels + Thickness, in pixels. diff --git a/reference/image/functions/imagesettile.xml b/reference/image/functions/imagesettile.xml index c1bb2d045c..07481eb9fd 100644 --- a/reference/image/functions/imagesettile.xml +++ b/reference/image/functions/imagesettile.xml @@ -1,5 +1,5 @@ - + imagesettile @@ -41,7 +41,7 @@ tile - The image resource to be used as a tile + The image resource to be used as a tile. diff --git a/reference/image/functions/imagestring.xml b/reference/image/functions/imagestring.xml index 355072aa18..0d9c98dea8 100644 --- a/reference/image/functions/imagestring.xml +++ b/reference/image/functions/imagestring.xml @@ -1,5 +1,5 @@ - + imagestring @@ -30,7 +30,7 @@ x - x-coordinate of the upper left corner + x-coordinate of the upper left corner. @@ -38,7 +38,7 @@ y - y-coordinate of the upper left corner + y-coordinate of the upper left corner. @@ -46,7 +46,7 @@ string - The string to be written + The string to be written. @@ -55,7 +55,7 @@ A color identifier created with - imagecolorallocate + imagecolorallocate. diff --git a/reference/image/functions/imagestringup.xml b/reference/image/functions/imagestringup.xml index 08bb8e4a36..500927eb81 100644 --- a/reference/image/functions/imagestringup.xml +++ b/reference/image/functions/imagestringup.xml @@ -1,5 +1,5 @@ - + imagestringup @@ -31,7 +31,7 @@ x - x-coordinate of the upper left corner + x-coordinate of the upper left corner. @@ -39,7 +39,7 @@ y - y-coordinate of the upper left corner + y-coordinate of the upper left corner. @@ -47,7 +47,7 @@ string - The string to be written + The string to be written. @@ -56,7 +56,7 @@ A color identifier created with - imagecolorallocate + imagecolorallocate. diff --git a/reference/image/functions/imagettfbbox.xml b/reference/image/functions/imagettfbbox.xml index 697086a0f2..1296c117ab 100644 --- a/reference/image/functions/imagettfbbox.xml +++ b/reference/image/functions/imagettfbbox.xml @@ -1,5 +1,5 @@ - + imagettfbbox @@ -27,7 +27,7 @@ size - The font size in pixels + The font size in pixels. @@ -35,7 +35,7 @@ angle - Angle in degrees in which text will be measured + Angle in degrees in which text will be measured. @@ -46,7 +46,7 @@ The name of the TrueType font file (can be a URL). Depending on which version of the GD library that PHP is using, it may attempt to search for files that do not begin with a leading '/' by appending - '.ttf' to the filename and searching along a library-defined font path + '.ttf' to the filename and searching along a library-defined font path. @@ -54,7 +54,7 @@ text - The string to be measured + The string to be measured. diff --git a/reference/image/functions/imagettftext.xml b/reference/image/functions/imagettftext.xml index c01f399ac3..339cabbbdf 100644 --- a/reference/image/functions/imagettftext.xml +++ b/reference/image/functions/imagettftext.xml @@ -1,5 +1,5 @@ - + imagettftext @@ -33,7 +33,7 @@ The font size. Depending on your version of GD, this should be - specified as the pixel size (GD1) or point size (GD2) + specified as the pixel size (GD1) or point size (GD2). @@ -75,7 +75,7 @@ The color index. Using the negative of a color index has the effect of - turning off antialiasing. See imagecolorallocate + turning off antialiasing. See imagecolorallocate. diff --git a/reference/image/functions/iptcembed.xml b/reference/image/functions/iptcembed.xml index bac4d7e4d0..cd93321231 100644 --- a/reference/image/functions/iptcembed.xml +++ b/reference/image/functions/iptcembed.xml @@ -1,5 +1,5 @@ - + iptcembed @@ -13,9 +13,6 @@ stringjpeg_file_name intspool - - &warn.undocumented.func; -
&reftitle.parameters; @@ -25,6 +22,7 @@ iptcdata + The data to be written. @@ -32,6 +30,7 @@ jpeg_file_name + Path to the JPEG image. @@ -39,12 +38,29 @@ spool + Spool flag. If the spool flag is over 2 then the JPEG will be + returned as a string. + + &reftitle.returnvalues; + + If success and spool flag is lower than 2 then the JPEG will not be + returned as a string, &false; on errors. + + + + &reftitle.notes; + + + This function does not require the GD image library. + + +
+ iptcparse @@ -23,7 +23,7 @@ iptcblock - A binary IPTC block + A binary IPTC block. @@ -37,14 +37,34 @@ value. It returns &false; on error or if no IPTC data was found. - - &reftitle.seealso; + + &reftitle.examples; - - getimagesize for an example - + + iptcparse() used together with <function>getimagesize</function> + + +]]> + + + + &reftitle.notes; + + + This function does not require the GD image library. + + + + jpeg2wbmp @@ -27,7 +27,7 @@ jpegname - Path to JPEG file + Path to JPEG file. @@ -35,7 +35,7 @@ wbmpname - Path to destination WBMP file + Path to destination WBMP file. @@ -43,7 +43,7 @@ dest_height - Destination image height + Destination image height. @@ -51,7 +51,7 @@ dest_width - Destination image width + Destination image width. @@ -59,7 +59,7 @@ threshold - Threshold value, between 0 and 255 (inclusive) + Threshold value, between 0 and 255 (inclusive). diff --git a/reference/image/functions/png2wbmp.xml b/reference/image/functions/png2wbmp.xml index 6762722bdc..d6b4edfe30 100644 --- a/reference/image/functions/png2wbmp.xml +++ b/reference/image/functions/png2wbmp.xml @@ -1,5 +1,5 @@ - + png2wbmp @@ -27,7 +27,7 @@ pngname - Path to PNG file + Path to PNG file. @@ -35,7 +35,7 @@ wbmpname - Path to destination WBMP file + Path to destination WBMP file. @@ -43,7 +43,7 @@ dest_height - Destination image height + Destination image height. @@ -51,7 +51,7 @@ dest_width - Destination image width + Destination image width. @@ -59,7 +59,7 @@ threshold - Threshold value, between 0 and 255 (inclusive) + Threshold value, between 0 and 255 (inclusive).