For Programmers: Free Programming Magazines  


Home > Archive > PERL Miscellaneous > November 2005 > How to change the brightness or apply transperency to a part/ an image?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author How to change the brightness or apply transperency to a part/ an image?
Oliver Bleckmann

2005-11-23, 6:58 pm

Hi,

short question:

Im using GD to generate some gif's.
How do i change all colors within a certain area of the image -
e.g. rise the brightness.
Perhaps there is a way to rotate the pallet or draw a transparent white
layer (background color) over the area, which creates this effect? Or
multiply two images, or whatever...
I have to create some color gradations, but cannot use a fill method,
because there's no way to determin
the position of the objects. finally a new object is drawn, the image is
written, an the next time the program starts,
the process starts again. So these obects fade out afer x turns.




Oliver Bleckmann

2005-11-28, 7:56 am


"Christian Winter" <thepoet_nospam@arcor.de> schrieb im Newsbeitrag
news:43859cec$0$27884$9b4e6d93@newsread4
.arcor-online.net...
> Did you try the copyMerge method (in particular the percent value for
> opacy)?


Yes, thats what I do now, but it would be fine to manipulate the colors
(e.g. rotate them)...


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com