diff options
| author | Jouni Ahto <jah@php.net> | 2000-06-07 00:37:49 +0000 |
|---|---|---|
| committer | Jouni Ahto <jah@php.net> | 2000-06-07 00:37:49 +0000 |
| commit | 0ebcdb28afcb94d2c9258c06c609b474ed73b4bf (patch) | |
| tree | e1f03d3b03ebea7511f29d0b31e16fe08497bb4a /ext/gd/php_gd.h | |
| parent | b928bdceb8d3cc3bbb548c5ad4091d10963a2850 (diff) | |
| download | php-git-0ebcdb28afcb94d2c9258c06c609b474ed73b4bf.tar.gz | |
- Added functions imagewbmp(), imagecreatefromxbm().
- Nuked a lot of duplicate code.
@- Added function imagecreatefromxbm(). (Jouni)
@- Added function imagewbmp(). (Jouni, based on patch from Rune Nordbøe Skillingstad)
# Note: calling imagejpeg() with 3 arguments, the second one empty,
# is currently broken. Fill fix tomorrow evening unless someone beats me.
# Must have some sleep now, brains stopped working...
Diffstat (limited to 'ext/gd/php_gd.h')
| -rw-r--r-- | ext/gd/php_gd.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/gd/php_gd.h b/ext/gd/php_gd.h index cc917f321f..3076913799 100644 --- a/ext/gd/php_gd.h +++ b/ext/gd/php_gd.h @@ -53,6 +53,14 @@ #include "gdt1.h" #endif +#define PHP_GDIMG_TYPE_GIF 1 +#define PHP_GDIMG_TYPE_PNG 2 +#define PHP_GDIMG_TYPE_JPG 4 +#define PHP_GDIMG_TYPE_WBM 8 +#define PHP_GDIMG_TYPE_XBM 16 +#define PHP_GDIMG_TYPE_XPM 32 + + extern zend_module_entry gd_module_entry; #define phpext_gd_ptr &gd_module_entry @@ -91,6 +99,8 @@ PHP_FUNCTION(imagecopyresized); PHP_FUNCTION(imagecreate); PHP_FUNCTION(imagecreatefromgif); PHP_FUNCTION(imagecreatefromjpeg); +PHP_FUNCTION(imagecreatefromxbm); +PHP_FUNCTION(imagecreatefromxpm); PHP_FUNCTION(imagegammacorrect); PHP_FUNCTION(imagedestroy); PHP_FUNCTION(imagefill); @@ -113,6 +123,7 @@ PHP_FUNCTION(imagesx); PHP_FUNCTION(imagesy); PHP_FUNCTION(imagecreatefrompng); PHP_FUNCTION(imagepng); +PHP_FUNCTION(imagewbmp); void php_gdimagecharup(gdImagePtr, gdFontPtr, int, int, int, int); PHP_FUNCTION(imagedashedline); PHP_FUNCTION(imagettfbbox); @@ -129,6 +140,9 @@ PHP_FUNCTION(imagepstext); PHP_FUNCTION(imagepsbbox); PHPAPI int phpi_get_le_gd(void); +static void _php_image_create_from(INTERNAL_FUNCTION_PARAMETERS, int image_type); +static void _php_image_output(INTERNAL_FUNCTION_PARAMETERS, int image_type); +static void _php_image_output_wbmp(gdImagePtr im, FILE *fp); #ifdef ZTS #define GDLS_D php_gd_globals *gd_globals |
