diff --git a/reference/image/functions/imagefilledpolygon.xml b/reference/image/functions/imagefilledpolygon.xml index 4d7d7ccffd..bbd3bcca82 100644 --- a/reference/image/functions/imagefilledpolygon.xml +++ b/reference/image/functions/imagefilledpolygon.xml @@ -1,5 +1,5 @@ - + imagefilledpolygon @@ -80,10 +80,13 @@ $values = array( // create image $image = imagecreatetruecolor(250, 250); -// some colors +// allocate colors $bg = imagecolorallocate($image, 200, 200, 200); $blue = imagecolorallocate($image, 0, 0, 255); +// fill the background +imagefilledrectangle($image, 0, 0, 249, 249, $bg); + // draw a polygon imagefilledpolygon($image, $values, 6, $blue); diff --git a/reference/image/functions/imageftbbox.xml b/reference/image/functions/imageftbbox.xml index c452fe9edd..0234a65331 100644 --- a/reference/image/functions/imageftbbox.xml +++ b/reference/image/functions/imageftbbox.xml @@ -1,5 +1,5 @@ - + imageftbbox @@ -15,6 +15,10 @@ stringtext arrayextrainfo + + This function calculates and returns the bounding box in pixels + for a FreeType text. + &reftitle.parameters; diff --git a/reference/image/functions/imagepolygon.xml b/reference/image/functions/imagepolygon.xml index ee00e7312d..66fa547972 100644 --- a/reference/image/functions/imagepolygon.xml +++ b/reference/image/functions/imagepolygon.xml @@ -1,5 +1,5 @@ - + imagepolygon @@ -91,9 +91,6 @@ // Create a blank image $image = imagecreatetruecolor(400, 300); -// Fill the background color -$bg = imagecolorallocate($image, 0, 0, 0); - // Allocate a color for the polygon $col_poly = imagecolorallocate($image, 255, 255, 255);