开发者

iPhone screenshot different colour when displayed

开发者 https://www.devze.com 2023-01-04 04:31 出处:网络
I\'ve taken a screenshot of my iPhone app running and I\'d like to us开发者_C百科e that image as a png to be drawn by the app instead of generated graphics.

I've taken a screenshot of my iPhone app running and I'd like to us开发者_C百科e that image as a png to be drawn by the app instead of generated graphics.

When I take the screenshot, it looks fine. However, when that is saved as a PNG file, added to the Xcode project and then displayed back on the screen of the phone (or simulator) the colours are different.

Can anyone explain to me why it's changing? (I'm guessing there's a colour space conversion happening).

How can I stop this from changing?


You might be saving the png image with some incorrect settings which is either reducing the quality or number of colors used. Try the PNG-24 with transparency to see if that helps at all.

0

精彩评论

暂无评论...
验证码 换一张
取 消