Platforms to show: All Mac Windows Linux Cross-Platform
Back to CGImageMBS class.
CGImageMBS.AlphaInfo as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | CoreGraphics | MBS MacCG Plugin | 15.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
A CGImageAlphaInfo constant that specifies (1) whether the bitmap contains an alpha channel, (2) where the alpha bits are located in the image data, and (3) whether the alpha value is premultiplied. For possible values, see Constants. The function returns kCGImageAlphaNone if the image parameter refers to an image mask.
(Read only property)
Some examples using this property:
CGImageMBS.BitmapInfo as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | CoreGraphics | MBS MacCG Plugin | 15.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
This function returns a constant that specifies:
The type of bitmap data—floating point or integer. You use the constant kCGBitmapFloatComponents to extract this information.
Whether an alpha channel is in the data, and if so, how the alpha data is stored. You use the constant kCGBitmapAlphaInfoMask to extract the alpha information. Alpha information is specified as one of the constants listed in Alpha Information for Images.
(Read only property)
CGImageMBS.BitsPerComponent as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | CoreGraphics | MBS MacCG Plugin | 3.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
(Read only property)
CGImageMBS.BitsPerPixel as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | CoreGraphics | MBS MacCG Plugin | 3.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
(Read only property)
CGImageMBS.BytesPerRow as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | CoreGraphics | MBS MacCG Plugin | 8.6 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
(Read only property)
CGImageMBS.ColorSpace as CGColorSpaceMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | CoreGraphics | MBS MacCG Plugin | 3.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Value is a CGColorSpaceMBS.
Returns nil on any error.
(Read only property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | CoreGraphics | MBS MacCG Plugin | 2.7 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Handle is a CGImageRef.
(Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | CoreGraphics | MBS MacCG Plugin | 2.7 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Returns 0 on error.
(Read only property)
CGImageMBS.ImageIsMask as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | CoreGraphics | MBS MacCG Plugin | 3.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
(Read only property)
CGImageMBS.RenderingIntent as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | CoreGraphics | MBS MacCG Plugin | 3.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Constants:
kCGRenderingIntentDefault | 0 |
kCGRenderingIntentAbsoluteColorimetric | 1 |
kCGRenderingIntentRelativeColorimetric | 2 |
kCGRenderingIntentPerceptual | 3 |
kCGRenderingIntentSaturation | 4 |
CGImageMBS.RetainCount as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | CoreGraphics | MBS MacCG Plugin | 14.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
This is useful for debugging.
The retain count is for the CGImageRef, not the CGImageMBS object.
(Read only property)
CGImageMBS.ShouldInterpolate as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | CoreGraphics | MBS MacCG Plugin | 3.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
True if the image should use interpolation.
(Read only property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | CoreGraphics | MBS MacCG Plugin | 2.7 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Returns 0 on error.
(Read only property)
The items on this page are in the following plugins: MBS MacCG Plugin.