Inherits from | |
Conforms to | |
Framework | /System/Library/Frameworks/AppKit.framework |
Companion guide | |
Declared in | NSAffineTransform.h |
The Application Kit extends Foundation’s NSAffineTransform class by adding:
Methods for applying affine transformations to the current graphics context.
A method for applying an affine transformation to an NSBezierPath
.
Note: In Mac OS X v10.3 and earlier the NSAffineTransform
class was declared and implemented entirely in the Application Kit framework. As of Mac OS X v10.4 the NSAffineTransform
class has been split across the Foundation Kit and Application Kit frameworks.
Appends the receiver’s matrix to the current transformation matrix stored in the current graphics context, replacing the current transformation matrix with the result.
- (void)concat
Concatenation is performed by matrix multiplication—see “Manipulating Transform Values”.
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.h
Sets the current transformation matrix to the receiver’s transformation matrix.
- (void)set
The current transformation is stored in the current graphics context and is applied to subsequent drawing operations. You should use this method sparingly because it removes the existing transformation matrix, which is an accumulation of transformation matrices for the screen, window, and any superviews. Instead use the concat
method to add this transformation matrix to the current transformation matrix.
NSAffineTransform.h
Creates and returns a new NSBezierPath
object with each point in the given path transformed by the receiver.
- (NSBezierPath *)transformBezierPath:(NSBezierPath *)aPath
An object representing the bezier path to be used in the transformation.
The original NSBezierPath
object is not modified.
- transformPoint:
transformSize:
NSAffineTransform.h
© 2007 Apple Inc. All Rights Reserved. (Last updated: 2007-02-28)