Platforms to show: All Mac Windows Linux Cross-Platform

NSImageRepMBS.bitsPerSample as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Drawing MBS MacBase Plugin 7.2 Yes No No Yes, macOS only No
Function: Returns the number of bits per sample in the receiver.
Notes: (Read and Write property)

Feedback, Comments & Corrections

NSImageRepMBS.colorSpaceName as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Drawing MBS MacBase Plugin 7.2 Yes No No Yes, macOS only No
Function: The name of the receiver's color space.
Notes:
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)

Feedback, Comments & Corrections

NSImageRepMBS.Handle as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Drawing MBS MacBase Plugin 12.3 Yes No No Yes, macOS only No
Function: The internal object reference.
Notes: (Read and Write property)

Feedback, Comments & Corrections

NSImageRepMBS.hasAlpha as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Drawing MBS MacBase Plugin 7.2 Yes No No Yes, macOS only No
Function: Whether the receiver has an alpha channel.
Notes:
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)

Feedback, Comments & Corrections

NSImageRepMBS.height as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Drawing MBS MacBase Plugin 7.2 Yes No No Yes, macOS only No
Function: Height of image in points.
Notes:
0 on any error.
(Read only property)

Feedback, Comments & Corrections

NSImageRepMBS.isOpaque as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Drawing MBS MacBase Plugin 7.2 Yes No No Yes, macOS only No
Function: Returns a Boolean value indicating whether the receiver is opaque.
Notes:
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)

Feedback, Comments & Corrections

NSImageRepMBS.pixelsHigh as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Drawing MBS MacBase Plugin 7.2 Yes No No Yes, macOS only No
Function: Returns the height of the image, measured in pixels.
Notes:
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)

Feedback, Comments & Corrections

NSImageRepMBS.pixelsWide as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Drawing MBS MacBase Plugin 7.2 Yes No No Yes, macOS only No
Function: Returns the width of the image, measured in pixels.
Notes:
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)

Feedback, Comments & Corrections

NSImageRepMBS.size as NSSizeMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Drawing MBS MacBase Plugin 9.6 Yes No No Yes, macOS only No
Function: The size of the image representation.
Notes:
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)

Feedback, Comments & Corrections

NSImageRepMBS.width as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Drawing MBS MacBase Plugin 7.2 Yes No No Yes, macOS only No
Function: Width of image in points.
Notes:
0 on any error.
(Read only property)

Feedback, Comments & Corrections

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

The biggest plugin in space...




Links
MBS Xojo blog