mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
make the example more readable and comply with coding standards
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@96793 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
f6777cea25
commit
df35bb136e
1 changed files with 9 additions and 9 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.17 $ -->
|
||||
<!-- $Revision: 1.18 $ -->
|
||||
<chapter id="features.images">
|
||||
<title>Creating and manipulating images</title>
|
||||
|
||||
|
@ -21,14 +21,14 @@
|
|||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
Header("Content-type: image/png");
|
||||
$string=implode($argv," ");
|
||||
$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);
|
||||
ImagePng($im);
|
||||
ImageDestroy($im);
|
||||
header("Content-type: image/png");
|
||||
$string = implode($argv, " ");
|
||||
$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);
|
||||
imagepng($im);
|
||||
imagedestroy($im);
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
|
|
Loading…
Reference in a new issue