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 |
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 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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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.