Instance Property

attributes

The attributes used to create this instance.

Declaration

var attributes: [NSGraphicsContext.AttributeKey : Any]? { get }

Discussion

Screen-based graphics contexts do not store attributes, even if you create them using init(attributes:).

See Also

Getting Information About a Context

struct NSGraphicsContext.AttributeKey

These constants are dictionary keys used by init(attributes:) and attributes.

struct NSGraphicsContext.RepresentationFormatName

These constants are possible values for the NSGraphicsContextRepresentationFormatAttributeName key in a graphic context’s attribute dictionary.

var isFlipped: Bool

A Boolean value indicating the receiver’s flipped state.