Platforms to show: All Mac Windows Linux Cross-Platform

NSImageViewMBS class

Super class: NSControlMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Cocoa Controls MBS MacControls Plugin 10.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Function: An NSImageView object displays a single image from an NSImage object in a frame and can optionally allow a user to drag an image to it.
Example:
ImageWell1.NSImageViewMBS.alphaValue = 0.5
Notes:
You can embed this view in a CustomNSViewMBS to get more events for mouse and keyboard.
Subclass of the NSControlMBS 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 NSControlMBS

Super class NSViewMBS

Window Order Constants

Constant Value Description
NSWindowAbove 1 Moves the window above the indicated window.
NSWindowBelow -1 Moves the window below the indicated window.
NSWindowOut 0 Moves the window off the screen.

Super class NSResponderMBS

This class has no sub classes.

Some methods using this class:

Some properties using for this class:

Some examples using this class:

Blog Entries


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


NSImageRepMBS   -   NSIndexPathMBS

The biggest plugin in space...




Links
MBS Xojo Plugins

Start Chat