Mac Guides | Samples

MonoMac.Foundation.NSAffineTransform Class

NSAffineTransform provides methods for manipulating and applying affine transforms

See Also: NSAffineTransform

Syntax

[MonoMac.Foundation.Register("NSAffineTransform", true)]
public class NSAffineTransform : NSObject

Remarks

A transform provides instructions for transforming points from one coordinate system to another. An affine transformation preserves parallel lines.

Requirements

Namespace: MonoMac.Foundation
Assembly: XamMac (in XamMac.dll)
Assembly Versions: 0.0.0.0

The members of MonoMac.Foundation.NSAffineTransform are listed below.

See Also: NSObject

Public Constructors

Creates a new identity transformation.
Creates a new transformation matching the input value.
A constructor that initializes the object from the data stored in the unarchiver object.
Constructor to call on derived classes when the derived class has an [Export] constructor.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Properties

[read-only]
override
ClassHandleIntPtr. The handle for this class.
TransformStructCGAffineTransform.

Public Methods

AppendTransform(NSAffineTransform)
Caller's transformation is replaced with caller's transformation multiplied by the supplied transformation
Concat()
Appends the caller's transformation to the current graphics context.
Invert()
Replaces the transformation in the caller with the inverse of its current transformation.
PrependTransform(NSAffineTransform)
This transformation is replaced by the supplied transformation multiplied by the this transformation
RotateByDegrees(Single)
Appends a rotation factor to this transformation.
RotateByRadians(Single)
Appends a rotation factor to this transformation.
Scale(Single)
Appends the scale factor to both axis in this transformation.
Scale(Single, Single)
Appends the scale factors to this transformation.
Set()
Sets the transformation used by the current graphics context to this transformation.
TransformBezierPath(NSBezierPath) : NSBezierPath
TransformPoint(PointF) : PointF
Gets the transformed coordinates of a point.
TransformSize(SizeF) : SizeF
Applies this transformation to size and returns the result.
Translate(Single, Single)
Applies the given translation distances to this transformation