Contents

setImageScaling(_:forSegment:)

Sets the scaling mode used to display the specified segment’s image.

Declaration

func setImageScaling(_ scaling: NSImageScaling, forSegment segment: Int)

Parameters

  • scaling:

    One of the image scaling constants. For a list of possible values, see Nsimagescaling.

  • segment:

    The index of the segment whose enabled state you want to get. This method raises an exception (Rangeexception) if the index is out of bounds.

See Also

Configuring a segment image