diff --git a/reference/image/figures/imageantialias.png b/reference/image/figures/imageantialias.png new file mode 100644 index 0000000000..59f5e46d53 Binary files /dev/null and b/reference/image/figures/imageantialias.png differ diff --git a/reference/image/figures/imagefilltoborder.png b/reference/image/figures/imagefilltoborder.png new file mode 100644 index 0000000000..7c163e3c49 Binary files /dev/null and b/reference/image/figures/imagefilltoborder.png differ diff --git a/reference/image/figures/imagejpeg.jpg b/reference/image/figures/imagejpeg.jpg new file mode 100644 index 0000000000..5629f964ee Binary files /dev/null and b/reference/image/figures/imagejpeg.jpg differ diff --git a/reference/image/figures/imagesetbrush.png b/reference/image/figures/imagesetbrush.png new file mode 100644 index 0000000000..644464d40b Binary files /dev/null and b/reference/image/figures/imagesetbrush.png differ diff --git a/reference/image/figures/imagesetthickness.png b/reference/image/figures/imagesetthickness.png new file mode 100644 index 0000000000..e38e7dbe00 Binary files /dev/null and b/reference/image/figures/imagesetthickness.png differ diff --git a/reference/image/figures/imagesettile.png b/reference/image/figures/imagesettile.png new file mode 100644 index 0000000000..078b5d20e7 Binary files /dev/null and b/reference/image/figures/imagesettile.png differ diff --git a/reference/image/functions/imageantialias.xml b/reference/image/functions/imageantialias.xml index d0c10ab892..ef08797e4c 100644 --- a/reference/image/functions/imageantialias.xml +++ b/reference/image/functions/imageantialias.xml @@ -1,5 +1,5 @@ - + imageantialias @@ -10,7 +10,7 @@ boolimageantialias resourceimage - boolon + boolenabled Activate the fast drawing antialiased methods for lines and wired polygons. @@ -33,7 +33,7 @@ &gd.image.description; - on + enabled Whether to enable antialiasing or not. @@ -49,6 +49,50 @@ &return.success; + + &reftitle.examples; + + + A comparison of two lines, one with anti-aliasing switched on + + +]]> + + &example.outputs.similar; + + + + + + + + &reftitle.notes; ¬e.bundled.gd; diff --git a/reference/image/functions/imagecolorclosest.xml b/reference/image/functions/imagecolorclosest.xml index 36b505d0c6..8925e213f5 100644 --- a/reference/image/functions/imagecolorclosest.xml +++ b/reference/image/functions/imagecolorclosest.xml @@ -1,5 +1,5 @@ - + imagecolorclosest @@ -69,11 +69,60 @@ the specified one + + &reftitle.examples; + + + Search for a set of colors in an image + + $rgb) +{ + $result = imagecolorclosest($im, $rgb[0], $rgb[1], $rgb[2]); + $result = imagecolorsforindex($im, $result); + $result = "({$result['red']}, {$result['green']}, {$result['blue']})"; + + echo "#$id: Search ($rgb[0], $rgb[1], $rgb[2]); Closest match: $result.\n"; +} + +imagedestroy($im); +?> +]]> + + &example.outputs.similar; + + + + + + &reftitle.seealso; imagecolorexact + imagecolorclosestalpha + imagecolorclosesthwb diff --git a/reference/image/functions/imagecolorclosestalpha.xml b/reference/image/functions/imagecolorclosestalpha.xml index 1f36a82afb..4653815d41 100644 --- a/reference/image/functions/imagecolorclosestalpha.xml +++ b/reference/image/functions/imagecolorclosestalpha.xml @@ -1,5 +1,5 @@ - + imagecolorclosestalpha @@ -71,6 +71,53 @@ Returns the index of the closest color in the palette. + + &reftitle.examples; + + + Search for a set of colors in an image + + $rgb) +{ + $result = imagecolorclosestalpha($im, $rgb[0], $rgb[1], $rgb[2], $rgb[3]); + $result = imagecolorsforindex($im, $result); + $result = "({$result['red']}, {$result['green']}, {$result['blue']}, {$result['alpha']})"; + + echo "#$id: Search ($rgb[0], $rgb[1], $rgb[2], $rgb[3]); Closest match: $result.\n"; +} + +imagedestroy($im); +?> +]]> + + &example.outputs.similar; + + + + + + &reftitle.notes; ¬e.gd.2; @@ -80,6 +127,8 @@ imagecolorexactalpha + imagecolorclosest + imagecolorclosesthwb diff --git a/reference/image/functions/imagecolorclosesthwb.xml b/reference/image/functions/imagecolorclosesthwb.xml index 05bce9b13c..8ef2669063 100644 --- a/reference/image/functions/imagecolorclosesthwb.xml +++ b/reference/image/functions/imagecolorclosesthwb.xml @@ -1,11 +1,10 @@ - + imagecolorclosesthwb Get the index of the color which has the hue, white and blackness - &reftitle.description; @@ -20,7 +19,6 @@ white and blacknessnearest the given color. - &reftitle.parameters; @@ -53,7 +51,6 @@ - &reftitle.returnvalues; @@ -61,31 +58,6 @@ the hue, white and blackness nearest the given color. - - - &reftitle.changelog; - - - - - - &Version; - &Description; - - - - - 5.3.0 - - This function is now available on Windows - - - - - - - - &reftitle.examples; @@ -111,7 +83,38 @@ HWB: 33 - + + &reftitle.changelog; + + + + + + &Version; + &Description; + + + + + 5.3.0 + + This function is now available on Windows + + + + + + + + + &reftitle.seealso; + + + imagecolorclosest + imagecolorclosesthwb + + + + imagecolorset @@ -68,6 +68,37 @@ &return.void; + + &reftitle.examples; + + + <function>imagecolorset/function> example + + +]]> + + + + &reftitle.seealso; diff --git a/reference/image/functions/imagecreatefromgd.xml b/reference/image/functions/imagecreatefromgd.xml index 510b24b967..cfe5f7a066 100644 --- a/reference/image/functions/imagecreatefromgd.xml +++ b/reference/image/functions/imagecreatefromgd.xml @@ -1,5 +1,5 @@ - + imagecreatefromgd @@ -37,6 +37,34 @@ Returns an image resource identifier on success, &false; on errors. + + &reftitle.examples; + + + <function>imagecreatefromgd</function> example + + +]]> + + + + &reftitle.notes; &warn.no-win32-fopen-wrapper; diff --git a/reference/image/functions/imagecreatefromgd2.xml b/reference/image/functions/imagecreatefromgd2.xml index ae1ca1bb73..eff8aa8931 100644 --- a/reference/image/functions/imagecreatefromgd2.xml +++ b/reference/image/functions/imagecreatefromgd2.xml @@ -1,5 +1,5 @@ - + imagecreatefromgd2 @@ -37,6 +37,33 @@ Returns an image resource identifier on success, &false; on errors. + + &reftitle.examples; + + + <function>imagecreatefromgd2</function> example + + +]]> + + + + &reftitle.notes; ¬e.gd.2; diff --git a/reference/image/functions/imagecreatefromxbm.xml b/reference/image/functions/imagecreatefromxbm.xml index 566452048a..8b300affb1 100644 --- a/reference/image/functions/imagecreatefromxbm.xml +++ b/reference/image/functions/imagecreatefromxbm.xml @@ -1,5 +1,5 @@ - + imagecreatefromxbm @@ -39,6 +39,26 @@ Returns an image resource identifier on success, &false; on errors. + + &reftitle.examples; + + + Convert an XBM image to a png image using <function>imagecreatefromxbm</function> + + +]]> + + + + + imagecreatefromxpm @@ -38,7 +38,37 @@ Returns an image resource identifier on success, &false; on errors. - + + &reftitle.examples; + + + Creating an image instance using <function>imagecreatefromxpm</function> + + +]]> + + + + + &reftitle.returnvalues; ¬e.bundled.gd; ¬e.no-windows; diff --git a/reference/image/functions/imagecreatetruecolor.xml b/reference/image/functions/imagecreatetruecolor.xml index a2494a0d8b..38b91380cf 100644 --- a/reference/image/functions/imagecreatetruecolor.xml +++ b/reference/image/functions/imagecreatetruecolor.xml @@ -1,5 +1,5 @@ - + imagecreatetruecolor @@ -64,11 +64,11 @@ diff --git a/reference/image/functions/imagefilltoborder.xml b/reference/image/functions/imagefilltoborder.xml index 65a49937a0..0314899b26 100644 --- a/reference/image/functions/imagefilltoborder.xml +++ b/reference/image/functions/imagefilltoborder.xml @@ -1,5 +1,5 @@ - + imagefilltoborder @@ -71,6 +71,44 @@ &return.success; + + &reftitle.examples; + + + Filling an ellipse with a color + + +]]> + + &example.outputs.similar; + + + + + + + + + imagefttext @@ -192,6 +192,39 @@ $font = 'SomeFont'; + + &reftitle.examples; + + + <function>imagefttext</function> example + + +]]> + + + + &reftitle.notes; ¬e.gd.2; diff --git a/reference/image/functions/imagejpeg.xml b/reference/image/functions/imagejpeg.xml index 6b24006715..73497fa6e1 100644 --- a/reference/image/functions/imagejpeg.xml +++ b/reference/image/functions/imagejpeg.xml @@ -1,5 +1,5 @@ - + imagejpeg @@ -55,6 +55,84 @@ &return.success; + + &reftitle.examples; + + + Outputting a JPEG image + + +]]> + + &example.outputs.similar; + + + + + + + + + + Saving a JPEG image + + +]]> + + + + + + Outputting the image at 75% quality + + +]]> + + + + &reftitle.notes; ¬e.config.jpeg; diff --git a/reference/image/functions/imagepalettecopy.xml b/reference/image/functions/imagepalettecopy.xml index 6394b5f3f5..70961e9505 100644 --- a/reference/image/functions/imagepalettecopy.xml +++ b/reference/image/functions/imagepalettecopy.xml @@ -1,5 +1,5 @@ - + imagepalettecopy @@ -47,6 +47,42 @@ &return.void; + + &reftitle.examples; + + + <function>imagepalettecopy</function> example + + +]]> + + + + + imagepsencodefont @@ -58,6 +58,30 @@ &return.success; + + &reftitle.examples; + + + <function>imagepsencodefont</function> example + + +]]> + + + + &reftitle.notes; ¬e.config.t1lib; diff --git a/reference/image/functions/imagepsextendfont.xml b/reference/image/functions/imagepsextendfont.xml index 9a929efc7c..509cff5dda 100644 --- a/reference/image/functions/imagepsextendfont.xml +++ b/reference/image/functions/imagepsextendfont.xml @@ -1,5 +1,5 @@ - + imagepsextendfont @@ -47,6 +47,30 @@ &return.success; + + &reftitle.examples; + + + <function>imagepsextendfont</function> example + + +]]> + + + + &reftitle.notes; ¬e.config.t1lib; diff --git a/reference/image/functions/imagepsslantfont.xml b/reference/image/functions/imagepsslantfont.xml index 97d918b444..0878dd2869 100644 --- a/reference/image/functions/imagepsslantfont.xml +++ b/reference/image/functions/imagepsslantfont.xml @@ -1,5 +1,5 @@ - + imagepsslantfont @@ -45,6 +45,30 @@ &return.success; + + &reftitle.examples; + + + <function>imagepsslantfont</function> example + + +]]> + + + + &reftitle.notes; ¬e.config.t1lib; diff --git a/reference/image/functions/imagesetbrush.xml b/reference/image/functions/imagesetbrush.xml index 74cedd9b91..bfcf8b4b8a 100644 --- a/reference/image/functions/imagesetbrush.xml +++ b/reference/image/functions/imagesetbrush.xml @@ -1,5 +1,5 @@ - + imagesetbrush @@ -42,6 +42,48 @@ &return.success; + + &reftitle.examples; + + + Saving an XBM file + + +]]> + + &example.outputs.similar; + + + + + + + + &reftitle.notes; diff --git a/reference/image/functions/imagesetthickness.xml b/reference/image/functions/imagesetthickness.xml index 3c23ecf1a7..2ae3f8dd7e 100644 --- a/reference/image/functions/imagesetthickness.xml +++ b/reference/image/functions/imagesetthickness.xml @@ -1,5 +1,5 @@ - + imagesetthickness @@ -40,6 +40,45 @@ &return.success; + + &reftitle.examples; + + + Saving an XBM file + + +]]> + + &example.outputs.similar; + + + + + + + + &reftitle.notes; ¬e.gd.2; diff --git a/reference/image/functions/imagesettile.xml b/reference/image/functions/imagesettile.xml index 07481eb9fd..144f41974f 100644 --- a/reference/image/functions/imagesettile.xml +++ b/reference/image/functions/imagesettile.xml @@ -1,5 +1,5 @@ - + imagesettile @@ -54,6 +54,43 @@ &return.success; + + &reftitle.examples; + + + Saving an XBM file + + +]]> + + &example.outputs.similar; + + + + + + + + + imagetruecolortopalette @@ -56,6 +56,29 @@ &return.success; + + &reftitle.examples; + + + Converting a true color image to a palette-based image + + +]]> + + + + &reftitle.notes; ¬e.gd.2; diff --git a/reference/image/functions/imagewbmp.xml b/reference/image/functions/imagewbmp.xml index 6f0ff624f5..1bc23302d1 100644 --- a/reference/image/functions/imagewbmp.xml +++ b/reference/image/functions/imagewbmp.xml @@ -1,5 +1,5 @@ - + imagewbmp @@ -51,6 +51,78 @@ &return.success; + + &reftitle.examples; + + + Outputting a WBMP image + + +]]> + + + + + + Saving the WBMP image + + + + + + + + Outputting the image with a different foreground + + + + + + &reftitle.notes; diff --git a/reference/image/functions/imagexbm.xml b/reference/image/functions/imagexbm.xml index fb2477224c..8da6c0f29a 100644 --- a/reference/image/functions/imagexbm.xml +++ b/reference/image/functions/imagexbm.xml @@ -1,5 +1,5 @@ - + imagexbm @@ -51,6 +51,54 @@ &return.success; + + &reftitle.examples; + + + Saving an XBM file + + +]]> + + + + + + Saving an XBM file with a different foreground color + + +]]> + + + + &reftitle.notes; ¬e.bundled.gd;