Saving imageRef from GLPaint creates completely black image

前端 未结 3 1864
时光说笑
时光说笑 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:26

    I found that changing the CGBitmapInfo into:

    CGBitmapInfo bitmapInfo = kCGImageAlphaPremultipliedLast;
    

    Results in a transparent background.

提交回复
热议问题