per pixel alpha
Posted: Thu May 17, 2007 9:56 am
I have been having a few issues with images that have per pixel alpha values.
It is hard to describe what is happening in all cases. When the alpha is 0 nothing is displayed, all correct there. But when the alpha was 255 it was still been alpha blended with the background.
What I discovered last night though is that if I rescale the 0-255 alpha values into 0-63 then everything works correctly. Anybody have any ideas about that? It seems the last two bits are used for something else.
It is hard to describe what is happening in all cases. When the alpha is 0 nothing is displayed, all correct there. But when the alpha was 255 it was still been alpha blended with the background.
What I discovered last night though is that if I rescale the 0-255 alpha values into 0-63 then everything works correctly. Anybody have any ideas about that? It seems the last two bits are used for something else.