Slight difference in PNG Colors

Roger Garstang

Well-Known Member
Licensed User
Longtime User
I'm aware of browsers and some image editors getting tints slightly off of PNG files, but it appears Android may have some issues too unless B4A does anything extra other than using Android's built in processing.

Usually reds, yellows, and possibly greens are off in browsers, but I've never had the extreme colors like white be off. I made a logo of mine a 24bit PNG to save space and just made the logo background white to match the activity that is also white. When ran in the emulator I didn't really notice anything (although it could have been), but on the device the activity is white and the image had a sky blue tint to it. It didn't matter if I used LoadBitmapSample or LoadBitmap. It is noticed more when the device is held at an angle too since the color difference is very small.

Not anything major as I just made the image transparent and 30KB bigger and it displays fine. I just thought it was odd.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…