Saving imageRef from GLPaint creates completely black image

前端 未结 3 1870
时光说笑
时光说笑 2020-12-20 02:15

Hi I am trying out drawing app and have a problem when it comes to saving the image that is drawn. Right now I\'m very early in learning this but I have added code from: How

3条回答
  •  醉酒成梦
    2020-12-20 02:18

    The save method should be called within the scope of the OpenGL context. To solve this you can move your method within the same rendering .m file and call this function from outside.

    Also you need to consider OpenGL clear color.

    (detail explanation in comments, lol)

提交回复
热议问题