diff --git a/reference/image/figures/imageconvolution_emboss.png b/reference/image/figures/imageconvolution_emboss.png new file mode 100644 index 0000000000..a4c063b484 Binary files /dev/null and b/reference/image/figures/imageconvolution_emboss.png differ diff --git a/reference/image/figures/imageconvolution_gaussian.png b/reference/image/figures/imageconvolution_gaussian.png new file mode 100644 index 0000000000..fea0382084 Binary files /dev/null and b/reference/image/figures/imageconvolution_gaussian.png differ diff --git a/reference/image/functions/imagecolorallocate.xml b/reference/image/functions/imagecolorallocate.xml index 4c2cf7cdeb..8c538d5154 100644 --- a/reference/image/functions/imagecolorallocate.xml +++ b/reference/image/functions/imagecolorallocate.xml @@ -1,5 +1,5 @@ - + imagecolorallocate @@ -68,7 +68,30 @@ &reftitle.returnvalues; - A color identifier or -1 if the allocation failed. + A color identifier or &false; if the allocation failed. + + + + &reftitle.changelog; + + + + + + &Version; + &Description; + + + + + Prior to 5.1.3 + + Returns -1 if the allocation failed. + + + + + diff --git a/reference/image/functions/imagecolorallocatealpha.xml b/reference/image/functions/imagecolorallocatealpha.xml index b472798293..371b39065c 100644 --- a/reference/image/functions/imagecolorallocatealpha.xml +++ b/reference/image/functions/imagecolorallocatealpha.xml @@ -1,5 +1,5 @@ - + imagecolorallocatealpha @@ -71,6 +71,29 @@ A color identifier or &false; if the allocation failed. + + &reftitle.changelog; + + + + + + &Version; + &Description; + + + + + Prior to 5.1.3 + + Returns -1 if the allocation failed. + + + + + + + &reftitle.examples; diff --git a/reference/image/functions/imageconvolution.xml b/reference/image/functions/imageconvolution.xml index b468e637c6..5e09b25f74 100644 --- a/reference/image/functions/imageconvolution.xml +++ b/reference/image/functions/imageconvolution.xml @@ -1,20 +1,23 @@ - + imageconvolution - Apply a 3x3 convolution matrix, using coefficient div and offset + Apply a 3x3 convolution matrix, using coefficient and offset &reftitle.description; boolimageconvolution resourceimage - arraymatrix3x3 + arraymatrix floatdiv floatoffset - &warn.undocumented.func; + + Applies a convolution matrix on the image, using the given coefficient and + offset. + &reftitle.parameters; @@ -22,9 +25,10 @@ &gd.image.description; - matrix3x3 + matrix + A 3x3 matrix: an array of three arrays of three floats. @@ -32,6 +36,7 @@ div + The divisor of the result of the convolution, used for normalization. @@ -51,10 +56,68 @@ &return.success; + + &reftitle.examples; + + + Embossing the PHP.net logo + + +]]> + + &example.outputs; + + + + + + Gaussian blur + + +]]> + + &example.outputs; + + + + + + &reftitle.notes; ¬e.bundled.gd; + + &reftitle.seealso; + + + imagefilter + + + + imagefilter @@ -200,6 +200,14 @@ imagedestroy($im); &reftitle.notes; ¬e.bundled.gd; + + &reftitle.seealso; + + + imageconvolution + + +