From b47cadeca3dfe3e0e1325ab15e8a9b3feb312086 Mon Sep 17 00:00:00 2001 From: Dave Barr Date: Thu, 12 Aug 2004 19:51:01 +0000 Subject: [PATCH] - Add info on automatically detected/supported types. Add return values, see alsos, and an example. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@166184 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../image/functions/imagecreatefromstring.xml | 53 +++++++++++++++++-- 1 file changed, 50 insertions(+), 3 deletions(-) diff --git a/reference/image/functions/imagecreatefromstring.xml b/reference/image/functions/imagecreatefromstring.xml index a02f74a994..e64fe412f4 100644 --- a/reference/image/functions/imagecreatefromstring.xml +++ b/reference/image/functions/imagecreatefromstring.xml @@ -1,5 +1,5 @@ - + @@ -7,14 +7,61 @@ Create a new image from the image stream in the string - Description + &reftitle.description; resourceimagecreatefromstring stringimage imagecreatefromstring returns an image identifier - representing the image obtained from the given string. + 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. + + + + &reftitle.returnvalues; + + An image resource will be returned on success. &false; is returned if + the image type is unsupported, the data is not in a recogised format, + or the image is corrupt and cannot be loaded. + + + + &reftitle.seealso; + + imagecreatefromjpeg, + imagecreatefrompng, + imagecreatefromgif&listendand; + imagecreate + + + + &reftitle.examples; + + + <function>imagecreatefromstring</function> example + + +]]> + +