From 27318cf9a83578c6b319a24225deef8e5b5c6954 Mon Sep 17 00:00:00 2001 From: leonardolara Date: Tue, 21 Jan 2025 07:39:09 -0300 Subject: [PATCH] sync with en rev --- reference/image/functions/imagecolorclosestalpha.xml | 4 +--- reference/image/functions/imagecolorclosesthwb.xml | 6 ++---- reference/image/functions/imagecolorexact.xml | 7 ++----- reference/image/functions/imagecolorexactalpha.xml | 7 ++----- reference/image/functions/imagecolormatch.xml | 6 +----- reference/image/functions/imagecolorresolve.xml | 6 ++---- reference/image/functions/imagecolorresolvealpha.xml | 6 ++---- reference/image/functions/imagecolorset.xml | 5 ++--- reference/image/functions/imagecolorstotal.xml | 5 +---- reference/image/functions/imagecolortransparent.xml | 3 +-- 10 files changed, 16 insertions(+), 39 deletions(-) diff --git a/reference/image/functions/imagecolorclosestalpha.xml b/reference/image/functions/imagecolorclosestalpha.xml index a132efbfe..bb97100f8 100644 --- a/reference/image/functions/imagecolorclosestalpha.xml +++ b/reference/image/functions/imagecolorclosestalpha.xml @@ -1,5 +1,5 @@ - + imagecolorclosestalpha @@ -95,8 +95,6 @@ foreach($colors as $id => $rgb) echo "#$id: Cor procurada: ($rgb[0], $rgb[1], $rgb[2], $rgb[3]); Cor mais próxima: $result.\n"; } - -imagedestroy($im); ?> ]]> diff --git a/reference/image/functions/imagecolorclosesthwb.xml b/reference/image/functions/imagecolorclosesthwb.xml index 5922a2aba..3e44a03fd 100644 --- a/reference/image/functions/imagecolorclosesthwb.xml +++ b/reference/image/functions/imagecolorclosesthwb.xml @@ -1,5 +1,5 @@ - + imagecolorclosesthwb @@ -15,7 +15,7 @@ intblue - Obtém o índice da cor que tem a matiz, + Obtém o índice da cor que tem a matiz, a brancura e a negritude mais próximas da cor informada. @@ -81,8 +81,6 @@ $im = imagecreatefromgif('php.gif'); echo 'HWB: ' . imagecolorclosesthwb($im, 116, 115, 152); - -imagedestroy($im); ?> ]]> diff --git a/reference/image/functions/imagecolorexact.xml b/reference/image/functions/imagecolorexact.xml index 1f86d9ca8..600031566 100644 --- a/reference/image/functions/imagecolorexact.xml +++ b/reference/image/functions/imagecolorexact.xml @@ -1,5 +1,5 @@ - + imagecolorexact @@ -15,7 +15,7 @@ intblue - Retorna o índice, na paleta da imagem, da cor + Retorna o índice, na paleta da imagem, da cor especificada. &gd.image.colors; @@ -88,9 +88,6 @@ $colors[] = imagecolorexact($im, 255, 255, 255); $colors[] = imagecolorexact($im, 100, 255, 52); print_r($colors); - -// Libera da memória -imagedestroy($im); ?> ]]> diff --git a/reference/image/functions/imagecolorexactalpha.xml b/reference/image/functions/imagecolorexactalpha.xml index a7647614b..543cbd058 100644 --- a/reference/image/functions/imagecolorexactalpha.xml +++ b/reference/image/functions/imagecolorexactalpha.xml @@ -1,5 +1,5 @@ - + imagecolorexactalpha @@ -16,7 +16,7 @@ intalpha - Retorna o índice, na paleta da imagem, da cor + Retorna o índice, na paleta da imagem, da cor e do alfa especificados. @@ -101,9 +101,6 @@ $colors[] = imagecolorexactalpha($im, 255, 255, 255, 55); $colors[] = imagecolorexactalpha($im, 100, 255, 52, 20); print_r($colors); - -// Libera da memória -imagedestroy($im); ?> ]]> diff --git a/reference/image/functions/imagecolormatch.xml b/reference/image/functions/imagecolormatch.xml index 9db448081..c4b90c86c 100644 --- a/reference/image/functions/imagecolormatch.xml +++ b/reference/image/functions/imagecolormatch.xml @@ -1,5 +1,5 @@ - + imagecolormatch @@ -91,10 +91,6 @@ $colors[] = imagecolorallocate($im2, 84, 63, 44); // Faz correspondência dessas cores com a imagem em cores verdadeiras imagecolormatch($im1, $im2); - -// Libera a memória -imagedestroy($im1); -imagedestroy($im2); ?> ]]> diff --git a/reference/image/functions/imagecolorresolve.xml b/reference/image/functions/imagecolorresolve.xml index acac5f97b..a8ec26836 100644 --- a/reference/image/functions/imagecolorresolve.xml +++ b/reference/image/functions/imagecolorresolve.xml @@ -1,5 +1,5 @@ - + imagecolorresolve @@ -88,10 +88,8 @@ $colors[] = imagecolorresolve($im, 0, 0, 200); // Saída print_r($colors); - -imagedestroy($im); ?> -]]> +]]> &example.outputs.similar; diff --git a/reference/image/functions/imagecolorresolvealpha.xml b/reference/image/functions/imagecolorresolvealpha.xml index 823170d78..b7cfde3b7 100644 --- a/reference/image/functions/imagecolorresolvealpha.xml +++ b/reference/image/functions/imagecolorresolvealpha.xml @@ -1,5 +1,5 @@ - + imagecolorresolvealpha @@ -100,10 +100,8 @@ $colors[] = imagecolorresolvealpha($im, 0, 0, 200, 127); // Saída print_r($colors); - -imagedestroy($im); ?> -]]> +]]> &example.outputs.similar; diff --git a/reference/image/functions/imagecolorset.xml b/reference/image/functions/imagecolorset.xml index bf52a32db..ef04d2982 100644 --- a/reference/image/functions/imagecolorset.xml +++ b/reference/image/functions/imagecolorset.xml @@ -1,5 +1,5 @@ - + imagecolorset @@ -17,7 +17,7 @@ intalpha0 - Esta função atribui a cor especificada ao índice especificado na + Esta função atribui a cor especificada ao índice especificado na paleta. Isto é útil para criar efeitos de preenchimento em imagens de paleta sem a sobrecarga de realizar verdadeiramente o preenchimento. @@ -113,7 +113,6 @@ imagecolorset($im, $bg, 0, 0, 255); header('Content-Type: image/png'); imagepng($im); -imagedestroy($im); ?> ]]> diff --git a/reference/image/functions/imagecolorstotal.xml b/reference/image/functions/imagecolorstotal.xml index 69185e81c..170e7ebfb 100644 --- a/reference/image/functions/imagecolorstotal.xml +++ b/reference/image/functions/imagecolorstotal.xml @@ -1,5 +1,5 @@ - + imagecolorstotal @@ -60,9 +60,6 @@ $im = imagecreatefromgif('php.gif'); echo 'Total de cores na imagem: ' . imagecolorstotal($im); - -// Libera a memória -imagedestroy($im); ?> ]]> diff --git a/reference/image/functions/imagecolortransparent.xml b/reference/image/functions/imagecolortransparent.xml index 5223b153f..2ee4c38c6 100644 --- a/reference/image/functions/imagecolortransparent.xml +++ b/reference/image/functions/imagecolortransparent.xml @@ -1,5 +1,5 @@ - + imagecolortransparent @@ -86,7 +86,6 @@ imagefilledrectangle($im, 4, 4, 50, 25, $red); // Grava a imagem imagepng($im, './imagecolortransparent.png'); -imagedestroy($im); ?> ]]>