Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图在后台线程上将 PDF 页面呈现为图像,是否有一种线程安全的方法可以从不使用的 pdfContext/context 生成图像:
UIGraphicsGetImageFromCurrentImageContext
AFAIK(几乎)所有核心图形调用都应该可以安全地在后台线程中使用,只要您不在屏幕上绘制并且不在多个线程之间共享资源(例如图形上下文)。