mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
Corresponding with new Doc style.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@195283 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
962c4bddc2
commit
752a28be22
1 changed files with 53 additions and 47 deletions
|
@ -1,47 +1,40 @@
|
|||
<?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.31 -->
|
||||
<refentry id="function.imagecreatefromstring">
|
||||
<refnamediv>
|
||||
<refname>imagecreatefromstring</refname>
|
||||
<refpurpose>Create a new image from the image stream in the string</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>resource</type><methodname>imagecreatefromstring</methodname>
|
||||
<methodparam><type>string</type><parameter>image</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
<function>imagecreatefromstring</function> returns an image identifier
|
||||
representing the image obtained from the given string. These types
|
||||
will be automatically detected if your build of PHP supports them:
|
||||
JPEG, PNG, GIF, WBMP, and GD2.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
An image resource will be returned on success. &false; is returned if
|
||||
the image type is unsupported, the data is not in a recognised format,
|
||||
or the image is corrupt and cannot be loaded.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
<function>imagecreatefromjpeg</function>,
|
||||
<function>imagecreatefrompng</function>,
|
||||
<function>imagecreatefromgif</function>&listendand;
|
||||
<function>imagecreatetruecolor</function>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
<example>
|
||||
<title><function>imagecreatefromstring</function> example</title>
|
||||
<programlisting role="php">
|
||||
<refentry id="function.imagecreatefromstring">
|
||||
<refnamediv>
|
||||
<refname>imagecreatefromstring</refname>
|
||||
<refpurpose>Create a new image from the image stream in the string</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>resource</type><methodname>imagecreatefromstring</methodname>
|
||||
<methodparam><type>string</type><parameter>image</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
<function>imagecreatefromstring</function> returns an image identifier
|
||||
representing the image obtained from the given string. These types
|
||||
will be automatically detected if your build of PHP supports them:
|
||||
JPEG, PNG, GIF, WBMP, and GD2.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
An image resource will be returned on success. &false; is returned if
|
||||
the image type is unsupported, the data is not in a recognised format,
|
||||
or the image is corrupt and cannot be loaded.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
<example>
|
||||
<title><function>imagecreatefromstring</function> example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$data = 'iVBORw0KGgoAAAANSUhEUgAAABwAAAASCAMAAAB/2U7WAAAABl'
|
||||
|
@ -60,11 +53,24 @@ else {
|
|||
}
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><function>imagecreatefromjpeg</function></member>
|
||||
<member><function>imagecreatefrompng</function></member>
|
||||
<member><function>imagecreatefromgif</function></member>
|
||||
<member><function>imagecreatetruecolor</function></member>
|
||||
</simplelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
Loading…
Reference in a new issue