Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSGraphicsMBS class.
NSGraphicsMBS.clipRect(r as NSRectMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Drawing | MBS MacCocoa Plugin | 12.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
r: The rectangle to intersect with the current clipping path.
NSGraphicsMBS.concat(transform as NSAffineTransformMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Drawing | MBS MacCocoa Plugin | 15.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSGraphicsMBS.ConcatTransform(NSAffineTransform as Variant)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Drawing | MBS MacCocoa Plugin | 12.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Please use saveGraphicsState so you can restore the state before applying matrix for other drawings.
Concatenation is performed by matrix multiplication.
If this method is invoked from within an NSView drawRect method, then the current transformation matrix is an accumulation of the screen, window, and any superview's transformation matrices. Invoking this method defines a new user coordinate system whose coordinates are mapped into the former coordinate system according to the receiver's transformation matrix. To undo the concatenation, you must invert the receiver's matrix and invoke this method again.
NSAffineTransform must be a NSAffineTransformMBS object.
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Drawing | MBS MacCocoa Plugin | 10.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
See also:
NSGraphicsMBS.Constructor(targetImage as NSBitmapImageRepMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Drawing | MBS MacCocoa Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Please make sure the graphics object is destroyed (Set to nil) so the drawings flush to the image.
Returns nil on any error.
See also:
NSGraphicsMBS.Constructor(targetImage as NSImageMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Drawing | MBS MacCocoa Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Please make sure the graphics object is destroyed (Set to nil) so the drawings flush to the image.
See also:
NSGraphicsMBS.Constructor(targetView as NSViewMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Drawing | MBS MacCocoa Plugin | 11.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Please make sure the graphics object is destroyed (Set to nil) so the drawings flush to the window.
See also:
NSGraphicsMBS.Constructor(targetWindow as DesktopWindow)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Drawing | MBS MacCocoa Plugin | 22.0 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
See also:
NSGraphicsMBS.Constructor(targetWindow as NSWindowMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Drawing | MBS MacCocoa Plugin | 10.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
See also:
NSGraphicsMBS.Constructor(targetWindow as window)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Drawing | MBS MacCocoa Plugin | 10.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
See also:
The items on this page are in the following plugins: MBS MacCocoa Plugin.