Contents

init(graphicsPort:flipped:)

Creates a new graphics context from the specified graphics port.

Declaration

init(graphicsPort: UnsafeMutableRawPointer, flipped initialFlippedState: Bool)

Parameters

  • graphicsPort:

    The graphics port used to create the graphics-context object. Typically graphicsPort is a Cgcontext (opaque type) object.

  • initialFlippedState:

    Specifies the receiver’s initial flipped state. This is the value returned by Isflipped when no view has focus.

Return Value

The created NSGraphicsContext object, or nil if the object could not be created.

See Also

Creating a Graphics Context