Contents

init(cgContext:flipped:)

Creates a new graphics context from the specified Core Graphics context and the initial flipped state.

Declaration

init(cgContext graphicsPort: CGContext, flipped initialFlippedState: Bool)

Parameters

  • graphicsPort:

    The graphics port used to create the graphics-context object, as 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