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

O

Oliver Bleckmann

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.
 
O

Oliver Bleckmann

Christian Winter said:
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)...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top