CGBitmapContextCreate on the iPhone/iPad

前端 未结 8 427

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 18:10

    Try to Run instruments allocation while you are running the application on device, it cold be' a memory related issue. If you are in a loop, create inside that loop an auto release pool.

    0 讨论(0)
  • 2021-01-12 18:11

    Perhaps CGImageGetBytesPerRow (power of two sounds excessive).

    0 讨论(0)
提交回复
热议问题