Platforms to show: All Mac Windows Linux Cross-Platform
Back to CGBitmapContextMBS class.
CGBitmapContextMBS.BitmapAlphaInfo as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | CoreGraphics | MBS MacCG Plugin | 3.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Returns 0 on any error.
CGImageAlphaInfo constants:
kCGImageAlphaNone | 0 | |
kCGImageAlphaPremultipliedLast | 1 | For example, premultiplied RGBA |
kCGImageAlphaPremultipliedFirst | 2 | For example, premultiplied ARGB |
kCGImageAlphaLast | 3 | For example, non-premultiplied RGBA |
kCGImageAlphaFirst | 4 | For example, non-premultiplied ARGB |
kCGImageAlphaNoneSkipLast | 5 | Equivalent to kCGImageAlphaNone. |
kCGImageAlphaNoneSkipFirst | 6 |
CGBitmapContextMBS.BitmapBitsPerComponent as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | CoreGraphics | MBS MacCG Plugin | 3.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Returns 0 on any error.
(Read only property)
CGBitmapContextMBS.BitmapBitsPerPixel as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | CoreGraphics | MBS MacCG Plugin | 3.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Returns 0 on any error.
(Read only property)
CGBitmapContextMBS.BitmapBytesPerRow as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | CoreGraphics | MBS MacCG Plugin | 3.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Returns 0 on any error.
(Read only property)
CGBitmapContextMBS.BitmapColorSpace as CGColorSpaceMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | CoreGraphics | MBS MacCG Plugin | 3.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Returns nil on any error.
This is not the same RB object used when you created the bitmap, but it will contain the same handle.
(Read only property)
CGBitmapContextMBS.BitmapData as MemoryBlock
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | CoreGraphics | MBS MacCG Plugin | 3.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Returns nil on any error.
This is not the same RB memoryblock object as you passed to the Create function, but it will point to the same bytes in memory.
(Read only property)
CGBitmapContextMBS.BitmapHeight as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | CoreGraphics | MBS MacCG Plugin | 3.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Returns 0 on any error.
(Read only property)
CGBitmapContextMBS.BitmapInfo as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | CoreGraphics | MBS MacCG Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The bitmap info of the bitmap graphics context or 0 if c is not a bitmap graphics context. See CGImage Reference for a description of the Image Bitmap Information constants that can be returned.
The CGBitmapInfo data returned by the function specifies whether the bitmap contains an alpha channel and how the alpha channel is generated, along with whether the components are floating-point or integer.
(Read only property)
CGBitmapContextMBS.BitmapWidth as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | CoreGraphics | MBS MacCG Plugin | 3.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Returns 0 on any error.
(Read only property)
The items on this page are in the following plugins: MBS MacCG Plugin.