layer.renderInContext doesn't take layer.mask into account?

后端 未结 1 535
Happy的楠姐
Happy的楠姐 2020-12-18 03:32

I\'m trying to render some UIImages into 1 single image that I can save in my photo album. But it seems to as if the layer.renderInContext doesn\'t take a layermask into acc

相关标签:
1条回答
  • 2020-12-18 04:06

    The documentation for renderInContext: that, among other properties, mask is not supported on Mac OS X 10.5. I suspect it is the same on iOS, even if the documentation doesn't say so.

    To solve your problem, you'll probably have to draw the layers separately into a graphics context, setting the correct mask on the graphics context itself.

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