Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSImageRepMBS class.

NSImageRepMBS.bitsPerSample as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Drawing MBS MacBase Plugin 7.2 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the number of bits per sample in the receiver.

(Read and Write property)

NSImageRepMBS.colorSpaceName as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Drawing MBS MacBase Plugin 7.2 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
The name of the receiver's color space.

The colorspace name, or NSCalibratedRGBColorSpace if no name has been assigned.

By default, an NSImageRep object's color space name is NSCalibratedRGBColorSpace. Color space names are defined as part of the NSColor class, in NSGraphics.h. The following are valid color space names:

NSCalibratedWhiteColorSpace
NSCalibratedBlackColorSpace
NSCalibratedRGBColorSpace
NSDeviceWhiteColorSpace
NSDeviceBlackColorSpace
NSDeviceRGBColorSpace
NSDeviceCMYKColorSpace
NSNamedColorSpace
NSCustomColorSpace
(Read and Write property)

NSImageRepMBS.Handle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Drawing MBS MacBase Plugin 12.3 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
The internal object reference.

(Read and Write property)

NSImageRepMBS.hasAlpha as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Drawing MBS MacBase Plugin 7.2 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Whether the receiver has an alpha channel.

Returns true if the receiver has a known alpha channel; otherwise, false.

Subclasses should call this method when loading image data to notify the parent class whether that data contains an alpha component. Passing in a value of true does not add an alpha channel to the image data itself; it merely records the fact that the data has an alpha channel.
(Read and Write property)

NSImageRepMBS.height as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Drawing MBS MacBase Plugin 7.2 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Height of image in points.

0 on any error.
(Read only property)

NSImageRepMBS.isOpaque as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Drawing MBS MacBase Plugin 7.2 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns a Boolean value indicating whether the receiver is opaque.

Use this method to test whether an image representation completely covers the area within the rectangle returned by the size method.

The returned value does not indicate whether the image has an alpha channel or if there is partial or complete transparency when drawing the image rep. Use the hasAlpha method to determine if the image has an alpha channel.
(Read and Write property)

NSImageRepMBS.pixelsHigh as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Drawing MBS MacBase Plugin 7.2 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the height of the image, measured in pixels.

Return Value:
The height of the image, measured in the units of the device coordinate space. This value is usually derived from the image data itself.
(Read and Write property)

NSImageRepMBS.pixelsWide as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Drawing MBS MacBase Plugin 7.2 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the width of the image, measured in pixels.

Return Value:
The width of the image, measured in the units of the device coordinate space. This value is usually derived from the image data itself.
(Read and Write property)

NSImageRepMBS.size as NSSizeMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Drawing MBS MacBase Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
The size of the image representation.

This size is the size of the image representation when it's rendered. It is not necessarily the same as the width and height of the image in pixels as specified by the image data, nor must it be equal to the size set for the NSImage object that wraps this image representation.

The size of an image representation combined with the physical dimensions of the image data determine the resolution of the image.
(Read and Write property)

NSImageRepMBS.width as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Drawing MBS MacBase Plugin 7.2 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Width of image in points.

0 on any error.
(Read only property)

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


The biggest plugin in space...