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

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.

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!