saveGraphicsState()
Saves the current graphics state and creates a new graphics state on the top of the stack.
Declaration
func saveGraphicsState()Discussion
The new graphics state is a copy of the previous state that can be modified to handle new drawing operations.
Saving the graphics state saves such attributes as the current drawing style, transformation matrix, color, and font. To set drawing style attributes, use the methods of NSBezierPath. Other attributes are accessed through appropriate objects such as NSAffineTransform, NSColor, and NSFont.