Platforms to show: All Mac Windows Linux Cross-Platform

NSImageCellMBS class

Super class: NSCellMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Cocoa Controls MBS MacCocoa Plugin 10.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Function: An NSImageCell object displays a single image (encapsulated in an NSImage object) in a frame.
Notes:
This class provides methods for choosing the frame and for aligning and scaling the image to fit the frame.

The object value of an NSImageCell object must be an NSImage object, so if you use the setObjectValue: method of NSCell, be sure to supply an NSImage object as an argument. Because an NSImage object does not need to be converted for display, do not use the NSCell methods relating to formatters.

An NSImageCell object is usually associated with some kind of control object—an NSImageView, an NSMatrix, or an NSTableView.
Subclass of the NSCellMBS class.

Feedback, Comments & Corrections

Scale Methods

Constant Value Description
NSImageScaleAxesIndependently 1 Scale each dimension to exactly fit destination. This setting does not preserve the aspect ratio of the image.
NSImageScaleNone 2 Do not scale the image.
NSImageScaleProportionallyDown 0 If it is too large for the destination, scale the image down while preserving the aspect ratio.
NSImageScaleProportionallyUpOrDown 3 Scale the image to its maximum possible dimensions while both staying within the destination area and preserving its aspect ratio.
NSScaleNone 2 Do not scale the image.
NSScaleProportionally 0 If it is too large for the destination, scale the image down while preserving the aspect ratio.
NSScaleToFit 1 Scale each dimension to exactly fit destination. This setting does not preserve the aspect ratio of the image.

Super class NSCellMBS

This class has no sub classes.


The items on this page are in the following plugins: MBS MacCocoa Plugin.


NSHTTPCookieStorageMBS   -   NSImageMBS

The biggest plugin in space...




Links
MBS Xojo Chart Plugins

Start Chat