<!--
{
  "availability" : [
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSImageScaling",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSImageScaling"
  },
  "title" : "NSImageScaling"
}
-->

# NSImageScaling

Constants that specify a cell’s image scaling behavior.

```
enum NSImageScaling
```

## Topics

### Constants

[`NSImageScaleProportionallyDown`](/documentation/AppKit/NSImageScaling/scaleProportionallyDown)

If it is too large for the destination, scale the image down while preserving the aspect ratio.

[`NSImageScaleAxesIndependently`](/documentation/AppKit/NSImageScaling/scaleAxesIndependently)

Scale each dimension to exactly fit destination.

[`NSImageScaleNone`](/documentation/AppKit/NSImageScaling/scaleNone)

Do not scale the image.

[`NSImageScaleProportionallyUpOrDown`](/documentation/AppKit/NSImageScaling/scaleProportionallyUpOrDown)

Scale the image to its maximum possible dimensions while both staying within the destination area and preserving its aspect ratio.

### Type Properties

[`NSScaleNone`](/documentation/AppKit/NSImageScaling/NSScaleNone)

[`NSScaleProportionally`](/documentation/AppKit/NSImageScaling/NSScaleProportionally)

[`NSScaleToFit`](/documentation/AppKit/NSImageScaling/NSScaleToFit)

## Relationships

### Conforms To

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)