summaryrefslogtreecommitdiff
path: root/ext/gd/php_gd.h
diff options
context:
space:
mode:
authorMathieu Kooiman <mathieu@php.net>2000-11-03 19:53:42 +0000
committerMathieu Kooiman <mathieu@php.net>2000-11-03 19:53:42 +0000
commitf391eb742343b75350375dc07762b978b407ffc9 (patch)
treee901fc58011c4be5de62bbd1a7b83bf72cde9638 /ext/gd/php_gd.h
parent3e8ac5d7f840932bb9d08cca3b21fbb574c60b31 (diff)
downloadphp-git-f391eb742343b75350375dc07762b978b407ffc9.tar.gz
- Introduced ImageCreateFromString() function,
works for GIF/JPEG/PNG and WBMP .. (Note: This built with the latest snapshot I grabbed tonight; Derick seemed to have trouble though..) @-Introduced ImageCreateFromString(), creates an image @ stream out of eg a MySQL blob. (Mathieu)
Diffstat (limited to 'ext/gd/php_gd.h')
-rw-r--r--ext/gd/php_gd.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/gd/php_gd.h b/ext/gd/php_gd.h
index d6e0b904b1..5444cfb68d 100644
--- a/ext/gd/php_gd.h
+++ b/ext/gd/php_gd.h
@@ -43,6 +43,9 @@
#define PHP_GDIMG_TYPE_XBM 5
#define PHP_GDIMG_TYPE_XPM 6
+extern const char php_sig_gif[3];
+extern const char php_sig_jpg[3];
+extern const char php_sig_png[3];
extern zend_module_entry gd_module_entry;
#define phpext_gd_ptr &gd_module_entry
@@ -84,6 +87,7 @@ PHP_FUNCTION(imagecopymerge);
PHP_FUNCTION(imagecopyresized);
PHP_FUNCTION(imagetypes);
PHP_FUNCTION(imagecreate);
+PHP_FUNCTION(imagecreatefromstring);
PHP_FUNCTION(imagecreatefromgif);
PHP_FUNCTION(imagecreatefromjpeg);
PHP_FUNCTION(imagecreatefromxbm);
@@ -128,9 +132,11 @@ PHP_FUNCTION(imagepstext);
PHP_FUNCTION(imagepsbbox);
PHPAPI int phpi_get_le_gd(void);
+gdImagePtr _php_image_create_from_string ( zval **Data, char *tn, gdImagePtr (*ioctx_func_p)() );
static void _php_image_create_from(INTERNAL_FUNCTION_PARAMETERS, int image_type, char *tn, gdImagePtr (*func_p)(), gdImagePtr (*ioctx_func_p)());
static void _php_image_output(INTERNAL_FUNCTION_PARAMETERS, int image_type, char *tn, void (*func_p)());
static void _php_image_output_wbmp(gdImagePtr im, FILE *fp);
+static int _php_image_type ( char data[8] );
#ifdef ZTS
#define GDLS_D php_gd_globals *gd_globals