Instance Property

imageScaling

The scaling mode used to fit the receiver's image into the frame.

Declaration

var imageScaling: NSImageScaling { get set }

Discussion

For a list of possible values, see NSImageScaling. The default value is NSImageScaling.scaleProportionallyDown.

See Also

Aligning and Scaling the Image

var imageAlignment: NSImageAlignment

The alignment of the receiver’s image relative to its frame.