Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSBitmapImageRepMBS class.

NSBitmapImageRepMBS.bitmapData as Ptr

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Drawing MBS MacBase Plugin 12.0 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns a pointer to the bitmap data.

If the data is planar, returns a pointer to the first plane.
(Read only property)

NSBitmapImageRepMBS.bitmapFormat as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Drawing MBS MacBase Plugin 12.0 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the bitmap format of the receiver.

Returns 0 by default. The return value can indicate several different attributes, which are described in Constants.
(Read only property)

NSBitmapImageRepMBS.bitsPerPixel as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Drawing MBS MacBase Plugin 12.0 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the number of bits allocated for each pixel in each plane of data.

This number is normally equal to the number of bits per sample or, if the data is in meshed configuration, the number of bits per sample times the number of samples per pixel. It can be explicitly set to another value (in initWithBitmapDataPlanes) in case extra memory is allocated for each pixel. This may be the case, for example, if pixel data is aligned on byte boundaries.
(Read only property)

NSBitmapImageRepMBS.bytesPerPlane as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Drawing MBS MacBase Plugin 12.0 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the number of bytes in each plane or channel of data.

This number is calculated from the number of bytes per row and the height of the image.
(Read only property)

NSBitmapImageRepMBS.bytesPerRow as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Drawing MBS MacBase Plugin 12.0 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the minimum number of bytes required to specify a scan line (a single row of pixels spanning the width of the image) in each data plane.

If not explicitly set to another value (in initWithBitmapDataPlanes), this number will be figured from the width of the image, the number of bits per sample, and, if the data is in a meshed configuration, the number of samples per pixel. It can be set to another value to indicate that each row of data is aligned on word or other boundaries.
(Read only property)

NSBitmapImageRepMBS.CGImage as Variant

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Drawing MBS MacBase Plugin 13.5 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the CGImageMBS for this image representation.

If the image was created using a CGImage, you can get it back.
Else a new CGImage may be created for you.
(Read only property)

NSBitmapImageRepMBS.colorSpace as NSColorSpaceMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Drawing MBS MacBase Plugin 12.0 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the image rep's colorSpace

Available in Mac OS X v10.6 and later.
(Read only property)

NSBitmapImageRepMBS.isPlanar as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Drawing MBS MacBase Plugin 12.0 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns true if image data is a planar configuration and false if its in a meshed configuration.

In a planar configuration, the image data is segregated into a separate plane for each color and coverage component. In a meshed configuration, the data is integrated into a single plane.
(Read only property)

NSBitmapImageRepMBS.numberOfPlanes as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Drawing MBS MacBase Plugin 12.0 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the number of separate planes image data is organized into.

This number is the number of samples per pixel if the data has a separate plane for each component (isPlanar returns true) and 1 if the data is meshed (isPlanar returns false).
(Read only property)

NSBitmapImageRepMBS.samplesPerPixel as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Drawing MBS MacBase Plugin 12.0 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the number of components in the data.

The returned value includes both color components and the coverage component, if present.
(Read only property)

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


The biggest plugin in space...