I just had a bug reported against my code, wherein an image pulled from a remote server displayed incorrectly. Turns out the image was an 8-bit grayscale png. (ergo the display issue)
I’m checking for nil returned from display.newImage(), but it’s returning a non nil value, even though the image is unsupported.
Question: How should I be detecting an invalid source image display result?
Thanks!
Corona simulator error: " : CGBitmapContextCreate: unsupported parameter combination: 8 integer bits/component; 16 bits/pixel; 1-component color space; kCGImageAlphaPremultipliedFirst; 256 bytes/row."
(Apologies if this already is answered in the forums; couldn’t find it addressed from searches.)
[import]uid: 5670 topic_id: 21889 reply_id: 321889[/import]