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.
CairoがQuartz出力をサポートしていることは知っていますが、Cocoaアプリでそのようなことをどのように実装するのでしょうか。ドキュメントでこれが行われている良い例は実際には見つかりませんでした。
を呼び出すことにより、CGContextRefからを取得できます。次に、からCairoコンテキストを作成できます。NSView[[[myView window] graphicsContext] graphicsPort]CGContextRef
CGContextRef
NSView
[[[myView window] graphicsContext] graphicsPort]