Creates the graphics context object used for drawing during the operation.
- macOS 10.0+
The graphics context object used for drawing. This object is created using the settings from the receiver's
Do not invoke this method directly—it is invoked before any output is generated.