From c5b67e119c874678f64ed168a5cd914c6e900ee9 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Wed, 24 Jan 2001 09:24:26 +0000 Subject: - Commited a patch that adds support for converting Images to WBMP format. (Thanx to Denis Gasparin ) @- Added support for converting images from JPG/PNG on the fly with the GD @ extension, which is usefull for creating dynamic WAP-sites (Derick) --- ext/gd/php_gd.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ext/gd/php_gd.h') diff --git a/ext/gd/php_gd.h b/ext/gd/php_gd.h index 27999968fd..f9756c6318 100644 --- a/ext/gd/php_gd.h +++ b/ext/gd/php_gd.h @@ -131,11 +131,18 @@ PHP_FUNCTION(imagepsslantfont); PHP_FUNCTION(imagepstext); PHP_FUNCTION(imagepsbbox); +PHP_FUNCTION(jpeg2wbmp); +PHP_FUNCTION(png2wbmp); +PHP_FUNCTION(image2wbmp); + + 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] ); +static void _php_image_bw_convert( gdImagePtr im_org, int threshold, FILE *out ); +static void _php_image_convert(INTERNAL_FUNCTION_PARAMETERS, int image_type); PHPAPI int phpi_get_le_gd(void); -- cgit v1.2.1