CGBitmapContextCreate on the iPhone/iPad

前端 未结 8 500

I have a method that needs to parse through a bunch of large PNG images pixel by pixel (the PNGs are 600x600 pixels each). It seems to work great on the Simulator, but on th

8条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-12 17:53

    I used a power of two aligned row size in an app that was defining the row size directly, as I was creating images programmatically. But I would also recommend toastie to try CGImageGetBytesPerRow before trying my suggestion as well.

提交回复
热议问题