<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: 10.0.0 - 10.6.0"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSImage/scalesWhenResized",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSImage(im)scalesWhenResized"
  },
  "title" : "scalesWhenResized"
}
-->

# scalesWhenResized

Returns a Boolean value that indicates whether to scale image representations to fit the image’s size.

```
- (BOOL) scalesWhenResized;
```

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if image representations are scaled to fit the receiver; otherwise, <doc://com.apple.documentation/documentation/Swift/false>. The default value is <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

Images are not resized during drawing if this method returns <doc://com.apple.documentation/documentation/Swift/true>. They are only resized when you assign a new value to the [`size`](/documentation/AppKit/NSImage/size) property.

## See Also

[`- (void) setScalesWhenResized:(BOOL) flag;`](/documentation/AppKit/NSImage/setScalesWhenResized:)

Sets whether to scale different-sized image representations to fit the image’s size.



---

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)