Ask a Question related to PHP Development, Design and Development.
-
Adrian #1
[PHP] Graduated fills using PHP Images
Hi all!
Is it possible to have PHP creates an image that graduates 1 color to
another, such as create and images 100 pixels wide and in height which
fades red to green top to bottom?
Any help or suggestions would be really helpful.
Thanks
Adrian
[email]php@stormbreaker.com[/email]
Adrian Guest
-
I would like to simulate depth of field with graduated gaussen blur
Is there a way to use the gradient tool and gaussen blur to create a mild to strong blur similar to a close up photo with a camera lens opened up to... -
Image with graduated fill using PHP
Hi all! Is it possible to have PHP creates an image that graduates 1 color to another, such as create and images 100 pixels wide and in height... -
Graduated Neutral Density
What is the best and most effective way, using Elements 2.0, to achieve an image effect similar to that when using a graduated neutral density filter... -
circular graduated neutral density filter
Hello, This was originally posted in rec.photo.digital last week, but was quickly buried in the incoming mail. I have a digital camera, so this... -
circular graduated neutral density filters
Hello, I'm thinging about buying a cheap ($16) circular graduated neutral density filter. I've been reading about them, and wanted to buy the... -
Jay Blanchard #2
RE: [PHP] Graduated fills using PHP Images
[snip]
Is it possible to have PHP creates an image that graduates 1 color to
another, such as create and images 100 pixels wide and in height which
fades red to green top to bottom?
[/snip]
[url]http://us3.php.net/image[/url]
You could set the color index and the loop through (while incrementing)
each new index. Seems awfully intensive though. I know that jpgraph
([url]http://www.aditus.nu/jpgraph/[/url]) can use gradiated backgrounds for some
of its output...perhaps you could look at the code included with the
class
HTH!
Jay Blanchard Guest
-
Jaap Van Ganswijk #3
Re: [PHP] Graduated fills using PHP Images
At 2003-08-15 08:14 -0400, Adrian wrote:
It's possible. I have just been experimenting with>Is it possible to have PHP creates an image that graduates 1 color to
>another, such as create and images 100 pixels wide and in height which
>fades red to green top to bottom?
it using ImageCreateTrueColor().
See the manual:
[url]http://www.php.net/manual/en/function.imagecreatetruecolor.php[/url]
You still have to use ImageColorAllocate() to get
a color but you can deallocate it right after usage
and you can use as many colors as you like (whereas
with normal 256 color images you can't use more
than 256). The process didn't noticably slow my
1 Ghz PC down.
I made some nice fades in two directions too:
[url]http://www.chipdir.nl/adprov/adb/cdb/468_60/08en.png[/url]
BTW. I made it look like the upper text has been pressed
downward into the material and the lower text has been
pressed upward out of the material. (Using alpha
channel coloring.)
Let me know if you want to see the source code...
Jaap Van Ganswijk Guest



Reply With Quote

