NSImageScaling
These constants specify a cell’s image scaling behavior.
enum { NSImageScaleProportionallyDown = 0, NSImageScaleAxesIndependently, NSImageScaleNone, NSImageScaleProportionallyUpOrDown }; typedef NSUInteger NSImageScaling;
Constants
-
If it is too large for the destination, scale the image down while preserving the aspect ratio.
Available in Mac OS X v10.5 and later.
Declared in
NSCell.h
. -
Scale each dimension to exactly fit destination.
This setting does not preserve the aspect ratio of the image.
Available in Mac OS X v10.5 and later.
Declared in
NSCell.h
. -
Do not scale the image.
Available in Mac OS X v10.5 and later.
Declared in
NSCell.h
. -
Scale the image to its maximum possible dimensions while both staying within the destination area and preserving its aspect ratio.
Available in Mac OS X v10.5 and later.
Declared in
NSCell.h
.
NSImageScaleProportionallyDown
NSImageScaleAxesIndependently
NSImageScaleNone
NSImageScaleProportionallyUpOrDown