Constants for the keys to include in a hints dictionary when drawing the image.
SDK
- macOS 10.13+
Framework
- App
Kit
Declaration
struct HintKey
Constants for the keys to include in a hints dictionary when drawing the image.
SDK
Framework
struct HintKey
static let ctm: NSImage Rep .Hint Key
A context transform hint.
static let interpolation: NSImage Rep .Hint Key
An interpolation hint.
static let user Interface Layout Direction: NSImage Rep .Hint Key
A layout direction hint.
func draw() -> Bool
Implemented by subclasses to draw the image in the current coordinate system.
func draw(at: NSPoint) -> Bool
Draws the receiver's image data at the specified point in the current coordinate system.
func draw(in: NSRect) -> Bool
Draws the image, scaling it (as needed) to fit the specified rectangle.
func draw(in: NSRect, from: NSRect, operation: NSCompositing Operation, fraction: CGFloat, respect Flipped: Bool, hints: [NSImage Rep .Hint Key : Any]?) -> Bool
Draws all or part of the image in the specified rectangle in the current coordinate system.