Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSAffineTransformMBS class.

NSAffineTransformMBS.CGAffineTransformToNSAffineTransform(CGAffineTransform as Variant) as NSAffineTransformMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreImage MBS Main Plugin 15.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Converts NSAffineTransformMBS to CGAffineTransformMBS.
Example
dim n as new NSAffineTransformMBS(1,2,3,4,5,6)
dim c as CGAffineTransformMBS = NSAffineTransformMBS.NSAffineTransformToCGAffineTransform(n)
dim r as NSAffineTransformMBS = NSAffineTransformMBS.CGAffineTransformToNSAffineTransform(c)

Break // check in debugger

To reduce plugin interdependencies, the parameter is declared as Variant and not as CGAffineTransformMBS.

NSAffineTransformMBS.NSAffineTransformToCGAffineTransform(NSAffineTransform as NSAffineTransformMBS) as Variant

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreImage MBS Main Plugin 15.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Converts NSAffineTransformMBS to CGAffineTransformMBS.
Example
dim n as new NSAffineTransformMBS(1,2,3,4,5,6)
dim c as CGAffineTransformMBS = NSAffineTransformMBS.NSAffineTransformToCGAffineTransform(n)
dim r as NSAffineTransformMBS = NSAffineTransformMBS.CGAffineTransformToNSAffineTransform(c)

Break // check in debugger

To reduce plugin interdependencies, the result is declared as Variant and not as CGAffineTransformMBS.

NSAffineTransformMBS.transform as NSAffineTransformMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreImage MBS Main Plugin 12.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates and returns a new NSAffineTransform object initialized to the identity matrix.
Example
dim a as NSAffineTransformMBS = NSAffineTransformMBS.transform
MsgBox str(a.m11)+", "+str(a.m12)+", "+str(a.m21)+", "+str(a.m22)+", "+str(a.tx)+", "+str(a.ty)

This matrix transforms any point to the same point.

The items on this page are in the following plugins: MBS Main Plugin.


The biggest plugin in space...