cvs: php-src /ext/gd/libgd gd.c
| From: | Rasmus Lerdorf | Date: | Sat, 16 Apr 2005 09:21:06 +0000 |
| Subject: | cvs: php-src /ext/gd/libgd gd.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-31424@lists.php.net to get a copy of this message | ||
rasmus Sat Apr 16 05:21:06 2005 EDT
Modified files:
/php-src/ext/gd/libgd gd.c
Log:
I think this is a cleaner emboss filter. Less fringing.
http://cvs.php.net/diff.php/php-src/ext/gd/libgd/gd.c?r1=1.87&r2=1.88&ty=u
Index: php-src/ext/gd/libgd/gd.c
diff -u php-src/ext/gd/libgd/gd.c:1.87 php-src/ext/gd/libgd/gd.c:1.88
--- php-src/ext/gd/libgd/gd.c:1.87 Fri Apr 15 20:04:52 2005
+++ php-src/ext/gd/libgd/gd.c Sat Apr 16 05:20:59 2005
@@ -3883,9 +3883,14 @@
int gdImageEmboss(gdImagePtr im)
{
+/*
float filter[3][3] = {{1.0,1.0,1.0},
{0.0,0.0,0.0},
{-1.0,-1.0,-1.0}};
+*/
+ float filter[3][3] = {{ 1.5, 0.0, 0.0},
+ { 0.0, 0.0, 0.0},
+ { 0.0, 0.0,-1.5}};
return gdImageConvolution(im, filter, 1, 127);
}