Thread Safe (CG) Version of UIGraphicsGetImageFromCurrentImageContext?

I am trying to make PDF pages images in a background thread, is there a thread safe way to generate an image from pdfContext / context that is not used:

UIGraphicsGetImageFromCurrentImageContext

+3
source share
1 answer

AFAIK (almost) all calls to Core Graphics should be safe to use in the background thread until you draw on the screen and share resources (such as graphics contexts) between multiple threads.

+3
source

Source: https://habr.com/ru/post/1775624/


All Articles