draw(in:)
Draws the image in the specified rectangle.
Declaration
func draw(in rect: NSRect)Parameters
- rect:
The rectangle in which to draw the image, specified in the current coordinate system.
Discussion
This method draws the entire image in the specified rectangle, scaling the image as needed. The method composites the image using the NSCompositeSourceOver operation