Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > How to change the brightness or apply transperency to a part/ an image?

Thread Tools

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

Oliver Bleckmann
Posts: n/a

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.

Reply With Quote
Oliver Bleckmann
Posts: n/a

"Christian Winter" <(E-Mail Removed)> schrieb im Newsbeitrag
news:43859cec$0$27884$(E-Mail Removed)
> 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)...

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Transperency problems on MAC Astroboy HTML 1 05-28-2010 08:34 AM
Brightness & Contrast vs. Brightness, Hue & Saturation. Mark A Framness Digital Photography 0 01-25-2005 02:42 PM
Change Brightness via HSB Petra Neumann Java 1 07-29-2004 03:43 PM
[XSLT] could not apply "apply-templates" Stefan Siegl XML 1 07-18-2003 09:43 AM