05-20-2010 12:20 PM
I've created a png image with only 1 color: white, but with varying degrees of transparency.
My idea is to overlay this png on top of any solid color and create a glossy UI effect, regardless of what the background color is.
However, when I implement it, I only see about 5 different shades of white, when theoretically there should be 255 different shades. Needless to say, it looks terrible.
Do you have any suggestions on how to make this work better? Could I manually draw the pixels using Graphics.drawARGB for a better effect, or is it a limitation of the simulator or blackberry device?
If you have any suggestions on how to create the desired effect, I would greatly appreciate them.
Solved! Go to Solution.
05-20-2010 04:00 PM
BlackBerrys have 16bit displays. When you make your image see in whatever program you have if you can save/view it with 16bit color to see how it will actually look.
05-20-2010 04:41 PM
I'm pretty sure transparency is 8bit (0-255) but the transparent color is mixed with the underlying color and the result is 16bit color. I would do some tests to figure out the best combo of what you want. So make some normal, 32bit images and then save them as 16bit images to see how the scaled colors work out.