mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Missed a few
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@33830 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
dcf2d388c9
commit
3f02850c43
1 changed files with 3 additions and 3 deletions
|
@ -14,10 +14,10 @@
|
|||
|
||||
<para>
|
||||
<example>
|
||||
<title>GIF creation with PHP</title>
|
||||
<title>PNG creation with PHP</title>
|
||||
<programlisting role="php">
|
||||
<?php
|
||||
Header("Content-type: image/gif");
|
||||
Header("Content-type: image/png");
|
||||
$string=implode($argv," ");
|
||||
$im = imageCreateFromPng("images/button1.png");
|
||||
$orange = ImageColorAllocate($im, 220, 210, 60);
|
||||
|
@ -32,7 +32,7 @@
|
|||
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"
|
||||
base image which in this case is "images/button1.png"
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue