---
title: scalesWhenResized
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nsimage/scaleswhenresized
---

# scalesWhenResized

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

## Declaration

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

## Return Value

Return Value true if image representations are scaled to fit the receiver; otherwise, false. The default value is false.

## Discussion

Discussion Images are not resized during drawing if this method returns true. They are only resized when you assign a new value to the size property.

## See Also

### Related Documentation

- [setScalesWhenResized:](appkit/nsimage/setscaleswhenresized:.md)

### Instance Methods

- [lockFocus()](appkit/nsimage/lockfocus().md)
- [lockFocusFlipped(_:)](appkit/nsimage/lockfocusflipped(_:).md)
- [unlockFocus()](appkit/nsimage/unlockfocus().md)
- [init(iconRef:)](appkit/nsimage/init(iconref:).md)
- [lockFocusOnRepresentation:](appkit/nsimage/lockfocusonrepresentation:.md)
- [bestRepresentationForDevice:](appkit/nsimage/bestrepresentationfordevice:.md)
- [compositeToPoint:operation:](appkit/nsimage/compositetopoint:operation:.md)
- [compositeToPoint:fromRect:operation:](appkit/nsimage/compositetopoint:fromrect:operation:.md)
- [compositeToPoint:fromRect:operation:fraction:](appkit/nsimage/compositetopoint:fromrect:operation:fraction:.md)
- [compositeToPoint:operation:fraction:](appkit/nsimage/compositetopoint:operation:fraction:.md)
- [dissolveToPoint:fraction:](appkit/nsimage/dissolvetopoint:fraction:.md)
- [dissolveToPoint:fromRect:fraction:](appkit/nsimage/dissolvetopoint:fromrect:fraction:.md)
- [setScalesWhenResized:](appkit/nsimage/setscaleswhenresized:.md)
- [setDataRetained:](appkit/nsimage/setdataretained:.md)
- [isDataRetained](appkit/nsimage/isdataretained.md)
