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

前端 未结 4 1846
有刺的猬
有刺的猬 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条回答
  •  没有蜡笔的小新
    2020-12-15 20:36

    You can use a CGBitmapContext. You can generate an image from a CGBitmapContext and draw it during your drawRect.

提交回复
热议问题