Platforms to show: All Mac Windows Linux Cross-Platform
NSAffineTransformMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | CoreImage | MBS Main Plugin | 7.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
As being used by CoreImage and by the NS* classes, it is a free plugin class requiring no registration.
- 9 properties
- 19 methods
- method appendTransform(transform as NSAffineTransformMBS)
- method Constructor
- method Constructor(m11 as Double, m12 as Double, m21 as Double, m22 as Double, tx as Double, ty as Double)
- method Constructor(transform as NSAffineTransformMBS)
- method getValues(byref m11 as Double, byref m12 as Double, byref m21 as Double, byref m22 as Double , byref tx as Double, byref tY as Double)
- method invert
- method Operator_Convert as String
- method Operator_Multiply(other as NSAffineTransformMBS) as NSAffineTransformMBS
- method Operator_MultiplyRight(other as NSAffineTransformMBS) as NSAffineTransformMBS
- method prependTransform(transform as NSAffineTransformMBS)
- method rotateByDegrees(angle as Double)
- method rotateByRadians(angle as Double)
- method scale(scale as Double)
- method scale(scaleX as Double, scaleY as Double)
- method setValues(m11 as Double, m12 as Double, m21 as Double, m22 as Double , tx as Double, tY as Double)
- method transformBezierPath(NSBezierPath as Variant) as Variant
- method transformPoint(byref x as Double, byref y as Double)
- method transformSize(byref width as Double, byref height as Double)
- method translate(deltaX as Double, deltaY as Double)
- 3 shared methods
- shared method CGAffineTransformToNSAffineTransform(CGAffineTransform as Variant) as NSAffineTransformMBS
- shared method NSAffineTransformToCGAffineTransform(NSAffineTransform as NSAffineTransformMBS) as Variant
- shared method transform as NSAffineTransformMBS
This class has no sub classes.
Some useful global functions for this class:
- NewCISamplerMBS(ciImage as CIImageMBS, matrix as NSAffineTransformMBS, WrapMode as String, FilterMode as string) as CISamplerMBS
Some methods using this class:
- CIFilterShapeMBS.TransformBy(CGAffineTransform as NSAffineTransformMBS, flag as boolean) as CIFilterShapeMBS
- CIImageMBS.ImageByApplyingTransform(transform as NSAffineTransformMBS) as CIImageMBS
- CISamplerMBS.Constructor(ciImage as CIImageMBS, matrix as NSAffineTransformMBS, WrapMode as String, FilterMode as string)
- CISamplerMBS.samplerWithImage(ciImage as CIImageMBS, matrix as NSAffineTransformMBS, WrapMode as String, FilterMode as string) as CISamplerMBS
- NSGraphicsMBS.concat(transform as NSAffineTransformMBS)
- NSGraphicsMBS.set(transform as NSAffineTransformMBS)
Some properties using for this class:
- CIAttributeMBS.DefaultAffineTransform as NSAffineTransformMBS
- CIAttributeMBS.IdentityAffineTransform as NSAffineTransformMBS
- CIFilterAffineClampMBS.inputTransform as NSAffineTransformMBS
- CIFilterAffineTileMBS.inputTransform as NSAffineTransformMBS
- CIFilterAffineTransformMBS.inputTransform as NSAffineTransformMBS
- CIFilterMBS.ValueAsAffineTransform(key as string) as NSAffineTransformMBS
Some examples using this class:
Blog Entries
- MBS Xojo Plugins, version 20.2pr2
- Tip of the day: Rotate image with CoreImage
- CocoaBase needs MacOSXCG
- MBS REALbasic plug-in 9.6
Release notes
- Version 20.2
- Added Operator_Convert and StringValue to CGAffineTransformMBS and NSAffineTransformMBS classes.
- Fixed bug in NSAffineTransformMBS copy constructor.
The items on this page are in the following plugins: MBS Main Plugin.