Skip to content

Commit

Permalink
sync with en rev
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardolara committed Jan 21, 2025
1 parent 93688cf commit 27318cf
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 39 deletions.
4 changes: 1 addition & 3 deletions reference/image/functions/imagecolorclosestalpha.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 593ea510e853ff034e03f78a4be0daa41661c9d4 Maintainer: leonardolara Status: ready -->
<!-- EN-Revision: 9960a09a5705102bf4dd0ce63e03d9ec716d0015 Maintainer: leonardolara Status: ready -->
<refentry xml:id="function.imagecolorclosestalpha" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>imagecolorclosestalpha</refname>
Expand Down Expand Up @@ -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);
?>
]]>
</programlisting>
Expand Down
6 changes: 2 additions & 4 deletions reference/image/functions/imagecolorclosesthwb.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 593ea510e853ff034e03f78a4be0daa41661c9d4 Maintainer: leonardolara Status: ready -->
<!-- EN-Revision: 9960a09a5705102bf4dd0ce63e03d9ec716d0015 Maintainer: leonardolara Status: ready -->
<refentry xml:id="function.imagecolorclosesthwb" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>imagecolorclosesthwb</refname>
Expand All @@ -15,7 +15,7 @@
<methodparam><type>int</type><parameter>blue</parameter></methodparam>
</methodsynopsis>
<para>
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.
</para>
</refsect1>
Expand Down Expand Up @@ -81,8 +81,6 @@
$im = imagecreatefromgif('php.gif');
echo 'HWB: ' . imagecolorclosesthwb($im, 116, 115, 152);
imagedestroy($im);
?>
]]>
</programlisting>
Expand Down
7 changes: 2 additions & 5 deletions reference/image/functions/imagecolorexact.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 593ea510e853ff034e03f78a4be0daa41661c9d4 Maintainer: leonardolara Status: ready -->
<!-- EN-Revision: 9960a09a5705102bf4dd0ce63e03d9ec716d0015 Maintainer: leonardolara Status: ready -->
<refentry xml:id="function.imagecolorexact" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>imagecolorexact</refname>
Expand All @@ -15,7 +15,7 @@
<methodparam><type>int</type><parameter>blue</parameter></methodparam>
</methodsynopsis>
<para>
Retorna o índice, na paleta da imagem, da cor
Retorna o índice, na paleta da imagem, da cor
especificada.
</para>
<para>&gd.image.colors;</para>
Expand Down Expand Up @@ -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);
?>
]]>
</programlisting>
Expand Down
7 changes: 2 additions & 5 deletions reference/image/functions/imagecolorexactalpha.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 593ea510e853ff034e03f78a4be0daa41661c9d4 Maintainer: leonardolara Status: ready -->
<!-- EN-Revision: 9960a09a5705102bf4dd0ce63e03d9ec716d0015 Maintainer: leonardolara Status: ready -->
<refentry xml:id="function.imagecolorexactalpha" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>imagecolorexactalpha</refname>
Expand All @@ -16,7 +16,7 @@
<methodparam><type>int</type><parameter>alpha</parameter></methodparam>
</methodsynopsis>
<para>
Retorna o índice, na paleta da imagem, da cor
Retorna o índice, na paleta da imagem, da cor
e do alfa especificados.
</para>
</refsect1>
Expand Down Expand Up @@ -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);
?>
]]>
</programlisting>
Expand Down
6 changes: 1 addition & 5 deletions reference/image/functions/imagecolormatch.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 593ea510e853ff034e03f78a4be0daa41661c9d4 Maintainer: leonardolara Status: ready -->
<!-- EN-Revision: 9960a09a5705102bf4dd0ce63e03d9ec716d0015 Maintainer: leonardolara Status: ready -->
<refentry xml:id="function.imagecolormatch" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>imagecolormatch</refname>
Expand Down Expand Up @@ -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);
?>
]]>
</programlisting>
Expand Down
6 changes: 2 additions & 4 deletions reference/image/functions/imagecolorresolve.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 593ea510e853ff034e03f78a4be0daa41661c9d4 Maintainer: leonardolara Status: ready -->
<!-- EN-Revision: 9960a09a5705102bf4dd0ce63e03d9ec716d0015 Maintainer: leonardolara Status: ready -->
<refentry xml:id="function.imagecolorresolve" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>imagecolorresolve</refname>
Expand Down Expand Up @@ -88,10 +88,8 @@ $colors[] = imagecolorresolve($im, 0, 0, 200);
// Saída
print_r($colors);
imagedestroy($im);
?>
]]>
]]>
</programlisting>
&example.outputs.similar;
<screen>
Expand Down
6 changes: 2 additions & 4 deletions reference/image/functions/imagecolorresolvealpha.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 593ea510e853ff034e03f78a4be0daa41661c9d4 Maintainer: leonardolara Status: ready -->
<!-- EN-Revision: 9960a09a5705102bf4dd0ce63e03d9ec716d0015 Maintainer: leonardolara Status: ready -->
<refentry xml:id="function.imagecolorresolvealpha" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>imagecolorresolvealpha</refname>
Expand Down Expand Up @@ -100,10 +100,8 @@ $colors[] = imagecolorresolvealpha($im, 0, 0, 200, 127);
// Saída
print_r($colors);
imagedestroy($im);
?>
]]>
]]>
</programlisting>
&example.outputs.similar;
<screen>
Expand Down
5 changes: 2 additions & 3 deletions reference/image/functions/imagecolorset.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 5764345c8662c22b570bf453650a9dd584bd3abb Maintainer: leonardolara Status: ready -->
<!-- EN-Revision: 9960a09a5705102bf4dd0ce63e03d9ec716d0015 Maintainer: leonardolara Status: ready -->
<refentry xml:id="function.imagecolorset" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>imagecolorset</refname>
Expand All @@ -17,7 +17,7 @@
<methodparam choice="opt"><type>int</type><parameter>alpha</parameter><initializer>0</initializer></methodparam>
</methodsynopsis>
<para>
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.
Expand Down Expand Up @@ -113,7 +113,6 @@ imagecolorset($im, $bg, 0, 0, 255);
header('Content-Type: image/png');
imagepng($im);
imagedestroy($im);
?>
]]>
</programlisting>
Expand Down
5 changes: 1 addition & 4 deletions reference/image/functions/imagecolorstotal.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 593ea510e853ff034e03f78a4be0daa41661c9d4 Maintainer: leonardolara Status: ready -->
<!-- EN-Revision: 9960a09a5705102bf4dd0ce63e03d9ec716d0015 Maintainer: leonardolara Status: ready -->
<refentry xml:id="function.imagecolorstotal" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>imagecolorstotal</refname>
Expand Down Expand Up @@ -60,9 +60,6 @@
$im = imagecreatefromgif('php.gif');
echo 'Total de cores na imagem: ' . imagecolorstotal($im);
// Libera a memória
imagedestroy($im);
?>
]]>
</programlisting>
Expand Down
3 changes: 1 addition & 2 deletions reference/image/functions/imagecolortransparent.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 593ea510e853ff034e03f78a4be0daa41661c9d4 Maintainer: leonardolara Status: ready -->
<!-- EN-Revision: 9960a09a5705102bf4dd0ce63e03d9ec716d0015 Maintainer: leonardolara Status: ready -->
<refentry xml:id="function.imagecolortransparent" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>imagecolortransparent</refname>
Expand Down Expand Up @@ -86,7 +86,6 @@ imagefilledrectangle($im, 4, 4, 50, 25, $red);
// Grava a imagem
imagepng($im, './imagecolortransparent.png');
imagedestroy($im);
?>
]]>
</programlisting>
Expand Down

0 comments on commit 27318cf

Please sign in to comment.