imageColorAllocateAlpha() for GIFs
Moderator: General Moderators
- Ollie Saunders
- DevNet Master
- Posts: 3179
- Joined: Tue May 24, 2005 6:01 pm
- Location: UK
imageColorAllocateAlpha() for GIFs
It seems that imageColorAllocateAlpha() functions as if there is no alpha at all for GIF images. Does anybody know of a workaround, how to get imageColorAllocateAlpha() to work for GIF images how it should?
Re: imageColorAllocateAlpha() for GIFs
GIFs do not technically have an alpha channel, only 2 states, on or off.
- Ollie Saunders
- DevNet Master
- Posts: 3179
- Joined: Tue May 24, 2005 6:01 pm
- Location: UK
Re: imageColorAllocateAlpha() for GIFs
This I understand. In this instance I don't actually want to leave any semi-transparent pixels I just want to fill with white at 50% opacity creating a washed out image which can be achieved by changing the existing colour pallette.
Hmm, it would be slow but perhaps I could iterate over each pixel.
Hmm, it would be slow but perhaps I could iterate over each pixel.