mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
* 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:
parent
222d440233
commit
86a9f0be43
3 changed files with 6 additions and 7 deletions
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue