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.
我有一个 NSBitmapImageRep,我需要打印它。在打印之前我是否需要以某种方式将 ii 放入 NSView 中,或者有什么方法可以直接打印它?
使用 anNSView是快速简便的方法。另见:-[NSBitmapImageRep CGImage]。
NSView
-[NSBitmapImageRep CGImage]
另一种方法是使用 PrintCore.framework,它是 ApplicationServices.framework 的一部分。