mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
Refer to and use imagecreatetruecolor() instead of imagecreate().
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@192905 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
954972076c
commit
98510adbdf
31 changed files with 68 additions and 66 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- splitted from ./en/functions/image.xml, last change in rev 1.61 -->
|
||||
<refentry id="function.image2wbmp">
|
||||
<refnamediv>
|
||||
|
@ -18,7 +18,8 @@
|
|||
<function>image2wbmp</function> creates the
|
||||
<acronym>WBMP</acronym> file in filename from the image
|
||||
<parameter>image</parameter>. The <parameter>image</parameter> argument
|
||||
is the return from <function>imagecreate</function>.
|
||||
is the return from one of the image create functions, such as
|
||||
<function>imagecreatetruecolor</function>.
|
||||
</para>
|
||||
<para>
|
||||
The filename argument is optional, and if left off, the raw image
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<!-- $Revision: 1.9 $ -->
|
||||
<!-- splitted from ./en/functions/image.xml, last change in rev 1.36 -->
|
||||
<refentry id="function.imagearc">
|
||||
<refnamediv>
|
||||
|
@ -37,7 +37,7 @@
|
|||
<?php
|
||||
|
||||
// create a 200*200 image
|
||||
$img = imagecreate(200, 200);
|
||||
$img = imagecreatetruecolor(200, 200);
|
||||
|
||||
// allocate some colors
|
||||
$white = imagecolorallocate($img, 255, 255, 255);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<!-- $Revision: 1.9 $ -->
|
||||
<!-- splitted from ./en/functions/image.xml, last change in rev 1.36 -->
|
||||
<refentry id="function.imagechar">
|
||||
<refnamediv>
|
||||
|
@ -33,7 +33,7 @@
|
|||
<![CDATA[
|
||||
<?php
|
||||
|
||||
$im = imagecreate(100, 100);
|
||||
$im = imagecreatetruecolor(100, 100);
|
||||
|
||||
$string = 'PHP';
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<!-- splitted from ./en/functions/image.xml, last change in rev 1.36 -->
|
||||
<refentry id="function.imagecharup">
|
||||
<refnamediv>
|
||||
|
@ -33,7 +33,7 @@
|
|||
<![CDATA[
|
||||
<?php
|
||||
|
||||
$im = imagecreate(100, 100);
|
||||
$im = imagecreatetruecolor(100, 100);
|
||||
|
||||
$string = 'Note that the first letter is a N';
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<!-- splitted from ./en/functions/image.xml, last change in rev 1.36 -->
|
||||
<refentry id="function.imagecolorallocate">
|
||||
<refnamediv>
|
||||
|
@ -19,7 +19,7 @@
|
|||
<function>imagecolorallocate</function> returns a color
|
||||
identifier representing the color composed of the given
|
||||
<acronym>RGB</acronym> components. The <parameter>image</parameter>
|
||||
argument is the return from the <function>imagecreate</function>
|
||||
argument is the return from the <function>imagecreatetruecolor</function>
|
||||
function. <parameter>red</parameter>, <parameter>green</parameter> and
|
||||
<parameter>blue</parameter> are the values of the red, green and blue
|
||||
component of the requested color respectively. These parameters are
|
||||
|
@ -40,6 +40,7 @@
|
|||
<![CDATA[
|
||||
<?php
|
||||
|
||||
$im = imagecreatetruecolor('example.jpg');
|
||||
// sets background to red
|
||||
$background = imagecolorallocate($im, 255, 0, 0);
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- splitted from ./en/functions/image.xml, last change in rev 1.36 -->
|
||||
<refentry id="function.imagecolortransparent">
|
||||
<refnamediv>
|
||||
|
@ -17,7 +17,7 @@
|
|||
<function>imagecolortransparent</function> sets the transparent
|
||||
color in the <parameter>image</parameter> image to
|
||||
<parameter>color</parameter>. <parameter>image</parameter> is the
|
||||
image identifier returned by <function>imagecreate</function> and
|
||||
image identifier returned by <function>imagecreatetruecolor</function> and
|
||||
<parameter>color</parameter> is a color identifier returned by
|
||||
<function>imagecolorallocate</function>.
|
||||
</para>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.11 $ -->
|
||||
<!-- $Revision: 1.12 $ -->
|
||||
<!-- splitted from ./en/functions/image.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.imagecreatefromgif">
|
||||
<refnamediv>
|
||||
|
@ -33,7 +33,7 @@ function LoadGif ($imgname)
|
|||
{
|
||||
$im = @imagecreatefromgif ($imgname); /* Attempt to open */
|
||||
if (!$im) { /* See if it failed */
|
||||
$im = imagecreate (150, 30); /* Create a blank image */
|
||||
$im = imagecreatetruecolor (150, 30); /* Create a blank image */
|
||||
$bgc = imagecolorallocate ($im, 255, 255, 255);
|
||||
$tc = imagecolorallocate ($im, 0, 0, 0);
|
||||
imagefilledrectangle ($im, 0, 0, 150, 30, $bgc);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.9 $ -->
|
||||
<!-- $Revision: 1.10 $ -->
|
||||
<!-- splitted from ./en/functions/image.xml, last change in rev 1.4 -->
|
||||
<refentry id="function.imagecreatefromjpeg">
|
||||
<refnamediv>
|
||||
|
@ -33,7 +33,7 @@ function LoadJpeg($imgname)
|
|||
{
|
||||
$im = @imagecreatefromjpeg($imgname); /* Attempt to open */
|
||||
if (!$im) { /* See if it failed */
|
||||
$im = imagecreate(150, 30); /* Create a blank image */
|
||||
$im = imagecreatruecolor(150, 30); /* Create a blank image */
|
||||
$bgc = imagecolorallocate($im, 255, 255, 255);
|
||||
$tc = imagecolorallocate($im, 0, 0, 0);
|
||||
imagefilledrectangle($im, 0, 0, 150, 30, $bgc);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<!-- $Revision: 1.9 $ -->
|
||||
<!-- splitted from ./en/functions/image.xml, last change in rev 1.4 -->
|
||||
<refentry id="function.imagecreatefrompng">
|
||||
<refnamediv>
|
||||
|
@ -33,7 +33,7 @@ function LoadPNG($imgname)
|
|||
{
|
||||
$im = @imagecreatefrompng($imgname); /* Attempt to open */
|
||||
if (!$im) { /* See if it failed */
|
||||
$im = imagecreate(150, 30); /* Create a blank image */
|
||||
$im = imagecreatetruecolor(150, 30); /* Create a blank image */
|
||||
$bgc = imagecolorallocate($im, 255, 255, 255);
|
||||
$tc = imagecolorallocate($im, 0, 0, 0);
|
||||
imagefilledrectangle($im, 0, 0, 150, 30, $bgc);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- splitted from ./en/functions/image.xml, last change in rev 1.31 -->
|
||||
<refentry id="function.imagecreatefromstring">
|
||||
<refnamediv>
|
||||
|
@ -33,7 +33,7 @@
|
|||
<function>imagecreatefromjpeg</function>,
|
||||
<function>imagecreatefrompng</function>,
|
||||
<function>imagecreatefromgif</function>&listendand;
|
||||
<function>imagecreate</function>
|
||||
<function>imagecreatetruecolor</function>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.9 $ -->
|
||||
<!-- $Revision: 1.10 $ -->
|
||||
<!-- splitted from ./en/functions/image.xml, last change in rev 1.30 -->
|
||||
<refentry id="function.imagecreatefromwbmp">
|
||||
<refnamediv>
|
||||
|
@ -33,7 +33,7 @@ function LoadWBMP($imgname)
|
|||
{
|
||||
$im = @imagecreatefromwbmp($imgname); /* Attempt to open */
|
||||
if (!$im) { /* See if it failed */
|
||||
$im = imagecreate (20, 20); /* Create a blank image */
|
||||
$im = imagecreatetruecolor (20, 20); /* Create a blank image */
|
||||
$bgc = imagecolorallocate($im, 255, 255, 255);
|
||||
$tc = imagecolorallocate($im, 0, 0, 0);
|
||||
imagefilledrectangle($im, 0, 0, 10, 10, $bgc);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- splitted from ./en/functions/image.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.imagedestroy">
|
||||
<refnamediv>
|
||||
|
@ -15,8 +15,8 @@
|
|||
<para>
|
||||
<function>imagedestroy</function> frees any memory associated
|
||||
with image <parameter>image</parameter>. <parameter>image</parameter>
|
||||
is the image identifier returned by the
|
||||
<function>imagecreate</function> function.
|
||||
is the image identifier returned by one of the image create functions,
|
||||
such as <function>imagecreatetruecolor</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<!-- $Revision: 1.9 $ -->
|
||||
<!-- splitted from ./en/functions/image.xml, last change in rev 1.36 -->
|
||||
<refentry id="function.imageellipse">
|
||||
<refnamediv>
|
||||
|
@ -37,7 +37,7 @@
|
|||
<?php
|
||||
|
||||
// create a blank image
|
||||
$image = imagecreate(400, 300);
|
||||
$image = imagecreatetruecolor(400, 300);
|
||||
|
||||
// fill the background color
|
||||
$bg = imagecolorallocate($image, 0, 0, 0);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<!-- splitted from ./en/functions/image.xml, last change in rev 1.36 -->
|
||||
<refentry id="function.imagefilledarc">
|
||||
<refnamediv>
|
||||
|
@ -57,7 +57,7 @@
|
|||
// this example is provided by poxy at klam dot is
|
||||
|
||||
// create image
|
||||
$image = imagecreate(100, 100);
|
||||
$image = imagecreatetruecolor(100, 100);
|
||||
|
||||
// allocate some solors
|
||||
$white = imagecolorallocate($image, 0xFF, 0xFF, 0xFF);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.10 $ -->
|
||||
<!-- $Revision: 1.11 $ -->
|
||||
<!-- splitted from ./en/functions/image.xml, last change in rev 1.36 -->
|
||||
<refentry id="function.imagefilledellipse">
|
||||
<refnamediv>
|
||||
|
@ -38,7 +38,7 @@
|
|||
<?php
|
||||
|
||||
// create a blank image
|
||||
$image = imagecreate(400, 300);
|
||||
$image = imagecreatetruecolor(400, 300);
|
||||
|
||||
// fill the background color
|
||||
$bg = imagecolorallocate($image, 0, 0, 0);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<!-- $Revision: 1.9 $ -->
|
||||
<!-- splitted from ./en/functions/image.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.imagefilledpolygon">
|
||||
<refnamediv>
|
||||
|
@ -45,7 +45,7 @@ $values = array(
|
|||
);
|
||||
|
||||
// create image
|
||||
$image = imagecreate(250, 250);
|
||||
$image = imagecreatetruecolor(250, 250);
|
||||
|
||||
// some colors
|
||||
$bg = imagecolorallocate($image, 200, 200, 200);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- splitted from ./en/functions/image.xml, last change in rev 1.67 -->
|
||||
<refentry id='function.imagegd'>
|
||||
<refnamediv>
|
||||
|
@ -16,7 +16,7 @@
|
|||
<para>
|
||||
<function>imagegd</function> outputs a GD image to
|
||||
<parameter>filename</parameter>. The <parameter>image</parameter>
|
||||
argument is the return from the <function>imagecreate</function>
|
||||
argument is the return from the <function>imagecreatetruecolor</function>
|
||||
function.
|
||||
</para>
|
||||
<para>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.12 $ -->
|
||||
<!-- $Revision: 1.13 $ -->
|
||||
<!-- splitted from ./en/functions/image.xml, last change in rev 1.67 -->
|
||||
<refentry id='function.imagegd2'>
|
||||
<refnamediv>
|
||||
|
@ -19,7 +19,7 @@
|
|||
<function>imagegd2</function> outputs a GD2 image to
|
||||
<parameter>filename</parameter>.
|
||||
The <parameter>image</parameter> parameter is the return from the
|
||||
<function>imagecreate</function> function.
|
||||
<function>imagecreatetruecolor</function> function.
|
||||
</para>
|
||||
<para>
|
||||
The <parameter>filename</parameter> parameter is optional, and if left
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.9 $ -->
|
||||
<!-- $Revision: 1.10 $ -->
|
||||
<!-- splitted from ./en/functions/image.xml, last change in rev 1.3 -->
|
||||
<refentry id="function.imagegif">
|
||||
<refnamediv>
|
||||
|
@ -17,7 +17,7 @@
|
|||
<function>imagegif</function> creates the <acronym>GIF</acronym>
|
||||
file in filename from the image <parameter>image</parameter>. The
|
||||
<parameter>image</parameter> argument is the return from the
|
||||
<function>imagecreate</function> function.
|
||||
<function>imagecreatetruecolor</function> function.
|
||||
</para>
|
||||
<para>
|
||||
The image format will be <acronym>GIF87a</acronym> unless the
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- splitted from ./en/functions/image.xml, last change in rev 1.30 -->
|
||||
<refentry id="function.imagejpeg">
|
||||
<refnamediv>
|
||||
|
@ -18,7 +18,7 @@
|
|||
<function>imagejpeg</function> creates the
|
||||
<acronym>JPEG</acronym> file in filename from the image
|
||||
<parameter>image</parameter>. The <parameter>image</parameter> argument
|
||||
is the return from the <function>imagecreate</function> function.
|
||||
is the return from the <function>imagecreatetruecolor</function> function.
|
||||
</para>
|
||||
<para>
|
||||
The filename argument is optional, and if left off, the raw image
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<!-- splitted from ./en/functions/image.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.imageline">
|
||||
<refnamediv>
|
||||
|
@ -59,7 +59,7 @@ function imagelinethick($image, $x1, $y1, $x2, $y2, $color, $thick = 1)
|
|||
</programlisting>
|
||||
</example>
|
||||
<para>
|
||||
See also <function>imagecreate</function> and
|
||||
See also <function>imagecreatetruecolor</function> and
|
||||
<function>imagecolorallocate</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<!-- splitted from ./en/functions/image.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.imageloadfont">
|
||||
<refnamediv>
|
||||
|
@ -75,7 +75,7 @@
|
|||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$im = imagecreate(50, 20);
|
||||
$im = imagecreatetruecolor(50, 20);
|
||||
$black = imagecolorallocate($im, 0, 0, 0);
|
||||
$white = imagecolorallocate($im, 255, 255, 255);
|
||||
imagefilledrectangle($im, 0, 0, 49, 19, $white);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.9 $ -->
|
||||
<!-- $Revision: 1.10 $ -->
|
||||
<!-- splitted from ./en/functions/image.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.imagepolygon">
|
||||
<refnamediv>
|
||||
|
@ -29,7 +29,7 @@
|
|||
<![CDATA[
|
||||
<?php
|
||||
// create a blank image
|
||||
$image = imagecreate(400, 300);
|
||||
$image = imagecreatetruecolor(400, 300);
|
||||
|
||||
// fill the background color
|
||||
$bg = imagecolorallocate($image, 0, 0, 0);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- splitted from ./en/functions/image.xml, last change in rev 1.7 -->
|
||||
<refentry id="function.imagepsloadfont">
|
||||
<refnamediv>
|
||||
|
@ -25,7 +25,7 @@
|
|||
<![CDATA[
|
||||
<?php
|
||||
header("Content-type: image/jpeg");
|
||||
$im = imagecreate(350, 45);
|
||||
$im = imagecreatetruecolor(350, 45);
|
||||
$black = imagecolorallocate($im, 0, 0, 0);
|
||||
$white = imagecolorallocate($im, 255, 255, 255);
|
||||
$font = imagepsloadfont("bchbi.pfb"); // or locate your .pfb files on your machine
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- splitted from ./en/functions/image.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.imagesetpixel">
|
||||
<refnamediv>
|
||||
|
@ -22,7 +22,7 @@
|
|||
<parameter>color</parameter>.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>imagecreate</function> and
|
||||
See also <function>imagecreatetruecolor</function> and
|
||||
<function>imagecolorallocate</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<!-- splitted from ./en/functions/image.xml, last change in rev 1.43 -->
|
||||
<refentry id="function.imagesetstyle">
|
||||
<refnamediv>
|
||||
|
@ -30,7 +30,7 @@
|
|||
<![CDATA[
|
||||
<?php
|
||||
header("Content-type: image/jpeg");
|
||||
$im = imagecreate(100, 100);
|
||||
$im = imagecreatetruecolor(100, 100);
|
||||
$w = imagecolorallocate($im, 255, 255, 255);
|
||||
$red = imagecolorallocate($im, 255, 0, 0);
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<!-- $Revision: 1.9 $ -->
|
||||
<!-- splitted from ./en/functions/image.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.imagestring">
|
||||
<refnamediv>
|
||||
|
@ -32,7 +32,7 @@
|
|||
<![CDATA[
|
||||
<?php
|
||||
// create a 100*30 image
|
||||
$im = imagecreate(100, 30);
|
||||
$im = imagecreatetruecolor(100, 30);
|
||||
|
||||
// white background and blue text
|
||||
$bg = imagecolorallocate($im, 255, 255, 255);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- splitted from ./en/functions/image.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.imagesx">
|
||||
<refnamediv>
|
||||
|
@ -23,7 +23,7 @@
|
|||
<?php
|
||||
|
||||
// create a 300*200 image
|
||||
$img = imagecreate(300, 200);
|
||||
$img = imagecreatetruecolor(300, 200);
|
||||
|
||||
echo imagesx($img); // 300
|
||||
|
||||
|
@ -32,7 +32,7 @@ echo imagesx($img); // 300
|
|||
</programlisting>
|
||||
</example>
|
||||
<para>
|
||||
See also <function>imagecreate</function>,
|
||||
See also <function>imagecreatetruecolor</function>,
|
||||
<function>getimagesize</function> and
|
||||
<function>imagesy</function>.
|
||||
</para>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- splitted from ./en/functions/image.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.imagesy">
|
||||
<refnamediv>
|
||||
|
@ -23,7 +23,7 @@
|
|||
<?php
|
||||
|
||||
// create a 300*200 image
|
||||
$img = imagecreate(300, 200);
|
||||
$img = imagecreatetruecolor(300, 200);
|
||||
|
||||
echo imagesy($img); // 200
|
||||
|
||||
|
@ -32,7 +32,7 @@ echo imagesy($img); // 200
|
|||
</programlisting>
|
||||
</example>
|
||||
<para>
|
||||
See also <function>imagecreate</function>,
|
||||
See also <function>imagecreatetruecolor</function>,
|
||||
<function>getimagesize</function> and
|
||||
<function>imagesx</function>.
|
||||
</para>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- $Revision: 1.16 $ -->
|
||||
<!-- $Revision: 1.17 $ -->
|
||||
<!-- splitted from ./en/functions/image.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.imagettftext">
|
||||
<refnamediv>
|
||||
|
@ -25,7 +25,7 @@
|
|||
<term><parameter>image</parameter></term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
The image resource. See <function>imagecreate</function>.
|
||||
The image resource. See <function>imagecreatetruecolor</function>.
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
@ -159,7 +159,7 @@ $font = 'SomeFont';
|
|||
header("Content-type: image/png");
|
||||
|
||||
// Create the image
|
||||
$im = imagecreate(400, 30);
|
||||
$im = imagecreatetruecolor(400, 30);
|
||||
|
||||
// Create some colors
|
||||
$white = imagecolorallocate($im, 255, 255, 255);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- splitted from ./en/functions/image.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.imagewbmp">
|
||||
<refnamediv>
|
||||
|
@ -18,7 +18,7 @@
|
|||
<function>imagewbmp</function> creates the
|
||||
<acronym>WBMP</acronym> file in filename from the image
|
||||
<parameter>image</parameter>. The <parameter>image</parameter> argument
|
||||
is the return from the <function>imagecreate</function> function.
|
||||
is the return from the <function>imagecreatetruecolor</function> function.
|
||||
</para>
|
||||
<para>
|
||||
The filename argument is optional, and if left off, the raw image
|
||||
|
|
Loading…
Reference in a new issue