Platforms to show: All Mac Windows Linux Cross-Platform
Back to Window class.
Window.CGContextMBS as CGContextMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreGraphics | MBS MacCG Plugin | 2.7 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Requires Mac OS X to work.
Please make sure the CGContextMBS object is released in the paint event if you use it there, so all the drawings are flushed. Not releasing it my be visible in missing statictext or other strange graphics effects.
But on a Cocoa window the context is not always available, so in the window paint event, you can context from Graphics object.
Some examples using this method:
- /MacCG/Carbon Print Manager/Carbon Print Hello
- /MacCG/Carbon Print Manager/sample
- /MacCG/Carbon Print Manager/sample with sheets
- /MacCG/CGGradient test
- /MacCG/CoreGraphics PDF/PDF Text
- /MacCG/CoreGraphics PDF/PDF Transparency
- /MacCG/CoreGraphics PDF/Simple Make PDF
- /MacCG/Gauss Blur Filter
- /MacCG/Print PDF with CoreGraphics/Print PDF with CoreGraphics
- /MacCocoa/RTF Printing
The items on this page are in the following plugins: MBS MacCG Plugin.