[libGD] #208 [Comment added] Scatter Filter
[email protected] Wed, 22 Jul 2009 13:36:11 +0200 (CEST)
| Newsgroups | php.gd.bugs |
|---|---|
| Message-ID | <[email protected]> |
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#208 - Scatter Filter
User who did this - Kalle Sommer Nielsen (Kalle)
----------
Latest update based on comments by Pierre, project files (patch, test, results) are available at:
http://php.tuxxedo.net/patches/gd/scatter/v3/
This patch contains the following changes compared to the last one:
* The scatter filter is moved to the gd_filter.c file
* GD_SCATTER_MAIN now makes use of GET_PIXEL_FUNCTION
* gd_filter.c have a new macro called PIXEL_FUNCTION_DECLARE to declare variables for use with the GET_PIXEL_FUNCTION
* The gdImageScatter have been removed and the gdImageScatterEx is now called gdImageScatter
* The gdImageScatterColor have been removed and the gdImageScatterColorList is now called gdImageScatterColor
* The gdImagescatterColor function now takes an additional parameter to specify the number of colors instead of generating it itself at runtime
* The imagefilter() function now works like the following:
* imagefilter($im, IMG_FILTER_SCATTER, $scatter, $modifier = NULL, $colors = NULL)
* If only the $scatter parameter is present, then the function will generate an inverted value of $scatter and use that for the "sub" parameter for the filter and $scatter for the "plus" parameter
* If the $modifier parameter is present, then similar to if no parameters were present then it will be used as "sub" and $scatter as "plus" parameters to the filter
* If the $colors parameter is present, and the parameter is an array or object, then the HASH_OF macro will be used and a C array listing the colors will be generated and sent to the filter, otherwise (scalar values) then the value will be converted to an int and sent as a single color to scatter
Example - general scatter:
{{http://php.tuxxedo.net/patches/gd/scatter/v3/test_compare.png}}
Example - Color scatter with 1 color:
{{http://php.tuxxedo.net/patches/gd/scatter/v3/test_compare_color_1.png}}
Example - Color scatter with 2 colors:
{{http://php.tuxxedo.net/patches/gd/scatter/v3/test_compare_color_2.png}}
----------
More information can be found at the following URL:
http://bugs.libgd.org/?do=details&task_id=208#comment619
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.