Re: [RFC] gd, imagefilter
| From: | Pierre-Alain Joye | Date: | Tue, 12 Nov 2002 17:26:09 +0000 |
| Subject: | Re: [RFC] gd, imagefilter | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-90877@lists.php.net to get a copy of this message | ||
On Tue, 12 Nov 2002 17:48:08 +0100 (CET)
Derick Rethans <derick@php.net> wrote:
> On Tue, 12 Nov 2002, Pierre-Alain Joye wrote:
..
> #define FILTER_MAX 2
Already done :)
> typedef image_filter {
> void (function*)(INTERNAL_FUNCTION_PARAMETERS);
> } image_filter;
>
> image_filter filters[] = {
> { image_filter_none },
> { image_filter_negate },
> { image_filter_blur }
> };
That s what I used
> PHP_FUNCTION(image_filter_none)
> {
> /* do stuff */
> }
> and then have:
>
> filters[filter_type]->function(INTERNAL_FUNCTION_PARAMETERS);
OK, there are the 2 points I missed, I ll try them tonight :-).
Thank's :)
pa