开发者

Thread Safe (CG) Version of UIGraphicsGetImageFromCurrentImageContext?

开发者 https://www.devze.com 2023-01-26 05:48 出处:网络
Im trying to render PDF pages to imag开发者_如何学Pythones on a background thread, is there a thread safe way of generating an image from a pdfContext/context that doesn\'t not use:

Im trying to render PDF pages to imag开发者_如何学Pythones on a background thread, is there a thread safe way of generating an image from a pdfContext/context that doesn't not use:

UIGraphicsGetImageFromCurrentImageContext


AFAIK (almost) all Core Graphics calls should be safe to use in a background thread as long you don't draw on screen and don't share resources (such as graphics contexts) among multiple threads.

0

精彩评论

暂无评论...
验证码 换一张
取 消