cortesi Sat Jul 7 14:52:24 2001 EDT
Modified files:
/phpdoc/it/features images.xml
Log:
changed references from GIF to PNG
Index: phpdoc/it/features/images.xml
diff -u phpdoc/it/features/images.xml:1.2 phpdoc/it/features/images.xml:1.3
--- phpdoc/it/features/images.xml:1.2 Wed Oct 11 09:43:29 2000
+++ phpdoc/it/features/images.xml Sat Jul 7 14:52:23 2001
@@ -1,41 +1,42 @@
<chapter id="features.images">
- <title>Creating and manipulating images</title>
+ <title>Creazione e manipolazione di immagini</title>
<simpara>
- PHP is not limited to creating just HTML output. It can also be
- used to create and manipulate image files in a variety of different
- image formats, including gif, png, jpg, wbmp, and xpm. Even more
- convenient, php can output image streams directly to a browser. You
- will need to compile PHP with the GD library of image functions for
- this to work. GD and PHP may also require other libraries, depending
- on which image formats you want to work with.
+ PHP non è limitato alla creazione di output HTML. Può anche essere
+ usato per creare e manipolare file di immagini in una varietà di differenti
+ formati, inclusi gif, png, jpg, wbmp e xpm. Ancora più convenientemente,
+ php può visualizzare una immagine da esso creata, direttamente in un
+ browser. E` necessario compilare PHP con le librerie GD per poter usare
+queste
+ funzioni. GD e PHP potrebbero necessitare di altre librerie, a seconda
+ di quali formati immagine si desidera usare. GD ha smesso di supportare le
+ immagini Gif dalla versione 1.6.
</simpara>
<para>
<example>
- <title>GIF creation with PHP</title>
+ <title>Creazione di PNG usando PHP</title>
<programlisting role="php">
<?php
- Header("Content-type: image/gif");
+ Header("Content-type: image/png");
$string=implode($argv," ");
- $im = imagecreatefromgif("images/button1.gif");
+ $im = imageCreateFromPng("images/button1.png");
$orange = ImageColorAllocate($im, 220, 210, 60);
$px = (imagesx($im)-7.5*strlen($string))/2;
ImageString($im,3,$px,9,$string,$orange);
- ImageGif($im);
+ ImagePng($im);
ImageDestroy($im);
?>
</programlisting>
</example>
- This example would be called from a page with a tag like: <img
- src="button.php?text"> The above button.php script
- then takes this "text" string an overlays it on top of a
- base image which in this case is "images/button1.gif"
- and outputs the resulting image. This is a very convenient way to
- avoid having to draw new button images every time you want to
- change the text of a button. With this method they are
- dynamically generated.
+ Questo esempio può essere chiamato da una pagina con un tag tipo: <img
+ src="button.php?text"> Lo script button.php presentato sopra
+ prende la stringa "text" e la sovrappone ad una immagine
+ base che, in questo caso è "images/button1.png"
+ e visualizza l'immagine risultante. Questo è un modo molto conveniente
+ per evitare di disegnare nuove immagini di bottoni ogni volta che si desidera
+modificare
+ il testo di un bottone. Con questo metodo esse sono
+ generate dinamicamente.
</para>
</chapter>
@@ -56,3 +57,4 @@
sgml-local-ecat-files:nil
End:
-->
+