我想知道当前的 CGContext 用于图像、PDF 或屏幕绘图。在 Cocoa 中,我只使用 [[NSGraphicsContext currentContext] isDrawingToScreen] ([NSGraphicsContext currentContextDrawingToScreen] on 10.10)。如何从 CGContext 获得相同的信息?
问问题
435 次
我想知道当前的 CGContext 用于图像、PDF 或屏幕绘图。在 Cocoa 中,我只使用 [[NSGraphicsContext currentContext] isDrawingToScreen] ([NSGraphicsContext currentContextDrawingToScreen] on 10.10)。如何从 CGContext 获得相同的信息?