From 03d12a1990bb9969821b8b51a780e2fada336754 Mon Sep 17 00:00:00 2001 From: Rasmus Lerdorf Date: Fri, 14 Jul 2000 22:29:01 +0000 Subject: [PATCH] Docs for ImageTypes() function git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@28323 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/image.xml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/functions/image.xml b/functions/image.xml index b451195470..fa66c5eb57 100644 --- a/functions/image.xml +++ b/functions/image.xml @@ -2031,6 +2031,38 @@ ImageDestroy ($im); + + + ImageTypes + + Return the image types supported by this PHP build + + + + Description + + + int imagettypes + + + + This function returns a bit-field corresponding to the image formats + supported by the version of GD linked into PHP. The following bits + are returned, IMG_GIF | IMG_JPG | IMG_PNG | IMG_WBMP. To check for PNG + support, for example, do this: + + ImageTypes + +<?php +if(ImageTypes() & IMG_PNG) { + echo "PNG Support is enabled"; +} +?> + + + + +