How to render to offscreen bitmap then blit to screen using Core Graphics

前端 未结 4 1820
有刺的猬
有刺的猬 2020-12-15 19:51

I would like to render to an offscreen bitmap (or array of RGBA values) and then blit those to a UIView during in the view\'s drawRect function. I

4条回答
  •  Happy的楠姐
    2020-12-15 20:44

    Use CGDataProviderCreateWithData and CGImageCreate if you don't need the bitmap context and just want the CGImageRef.

提交回复
热议问题