* Added imagedestroy() call to image2wbmp() example

* Fixed threshold parameter description for jpeg2wbmp() and png2wbmp()


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@265317 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Kalle Sommer Nielsen 2008-08-23 01:03:28 +00:00
parent 222d440233
commit 86a9f0be43
3 changed files with 6 additions and 7 deletions

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.12 $ -->
<!-- $Revision: 1.13 $ -->
<refentry xml:id="function.image2wbmp" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>image2wbmp</refname>
@ -57,13 +57,12 @@
<programlisting role="php">
<![CDATA[
<?php
$file = 'php.png';
$image = imagecreatefrompng($file);
header('Content-type: ' . image_type_to_mime_type(IMAGETYPE_WBMP));
image2wbmp($image); // output the stream directly
imagedestroy($image);
?>
]]>
</programlisting>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.8 $ -->
<!-- $Revision: 1.9 $ -->
<refentry xml:id="function.jpeg2wbmp" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>jpeg2wbmp</refname>
@ -59,7 +59,7 @@
<term><parameter>threshold</parameter></term>
<listitem>
<para>
Threshold value, between 0 and 255 (inclusive).
Threshold value, between 0 and 8 (inclusive).
</para>
</listitem>
</varlistentry>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.8 $ -->
<!-- $Revision: 1.9 $ -->
<refentry xml:id="function.png2wbmp" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>png2wbmp</refname>
@ -59,7 +59,7 @@
<term><parameter>threshold</parameter></term>
<listitem>
<para>
Threshold value, between 0 and 255 (inclusive).
Threshold value, between 0 and 8 (inclusive).
</para>
</listitem>
</varlistentry>