Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

CGImageMBS.AlphaInfo as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property CoreGraphics MBS MacCG Plugin 15.3 Yes No No Yes, macOS only No
Function: Returns the alpha channel information for a bitmap image.
Notes:
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)

Feedback, Comments & Corrections

CGImageMBS.BitmapInfo as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property CoreGraphics MBS MacCG Plugin 15.3 Yes No No Yes, macOS only No
Function: Returns the bitmap information for a bitmap image.
Notes:
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)

Feedback, Comments & Corrections

CGImageMBS.BitsPerComponent as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property CoreGraphics MBS MacCG Plugin 3.3 Yes No No Yes, macOS only No
Function: Returns the number of bits/component of the image.
Notes: (Read only property)

Feedback, Comments & Corrections

CGImageMBS.BitsPerPixel as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property CoreGraphics MBS MacCG Plugin 3.3 Yes No No Yes, macOS only No
Function: Returns the number of bits/pixel of image.
Notes: (Read only property)

Feedback, Comments & Corrections

CGImageMBS.BytesPerRow as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property CoreGraphics MBS MacCG Plugin 8.6 Yes No No Yes, macOS only No
Function: Returns the number of bytes allocated for a double row of a bitmap image.
Notes: (Read only property)

Feedback, Comments & Corrections

CGImageMBS.ColorSpace as CGColorSpaceMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property CoreGraphics MBS MacCG Plugin 3.3 Yes No No Yes, macOS only No
Function: The color space used for the image.
Example:
// get a picture file
dim file as FolderItem = SpecialFolder.Desktop.Child("sylwia.jpg")
// get image source
dim source as new CGImageSourceMBS(file)
// read image
dim image as CGImageMBS = source.CreateImageAtIndex(0)
// get Color space from image
dim profile as CGColorSpaceMBS = image.ColorSpace
// get ICC profile data
dim ICCProfile as string = profile.ICCProfile
// and parse it with LCMS and show name
dim LCMSProfile as LCMS2ProfileMBS = LCMS2ProfileMBS.OpenProfileFromString(ICCProfile)
MsgBox LCMSProfile.Name
Notes:
Value is a CGColorSpaceMBS.
Returns nil on any error.
(Read only property)

Feedback, Comments & Corrections

CGImageMBS.handle as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property CoreGraphics MBS MacCG Plugin 2.7 Yes No No Yes, macOS only No
Function: The handle for this image.
Notes:
Handle is a CGImageRef.
(Read and Write property)

Feedback, Comments & Corrections

CGImageMBS.height as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property CoreGraphics MBS MacCG Plugin 2.7 Yes No No Yes, macOS only No
Function: Returns the image's height.
Notes:
Returns 0 on error.
(Read only property)

Feedback, Comments & Corrections

CGImageMBS.ImageIsMask as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property CoreGraphics MBS MacCG Plugin 3.3 Yes No No Yes, macOS only No
Function: Returns true if the image is an image mask, false otherwise.
Notes: (Read only property)

Feedback, Comments & Corrections

CGImageMBS.RenderingIntent as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property CoreGraphics MBS MacCG Plugin 3.3 Yes No No Yes, macOS only No
Function: Returns the rendering intent of the image.
Notes:
Constants:
kCGRenderingIntentDefault0
kCGRenderingIntentAbsoluteColorimetric1
kCGRenderingIntentRelativeColorimetric2
kCGRenderingIntentPerceptual3
kCGRenderingIntentSaturation4
(Read only property)

Feedback, Comments & Corrections

CGImageMBS.RetainCount as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property CoreGraphics MBS MacCG Plugin 14.2 Yes No No Yes, macOS only No
Function: Returns the retain count of the CGImageRef.
Notes:
This is useful for debugging.
The retain count is for the CGImageRef, not the CGImageMBS object.
(Read only property)

Feedback, Comments & Corrections

CGImageMBS.ShouldInterpolate as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property CoreGraphics MBS MacCG Plugin 3.3 Yes No No Yes, macOS only No
Function: Returns the interpolation parameter of image.
Notes:
True if the image should use interpolation.
(Read only property)

Feedback, Comments & Corrections

CGImageMBS.width as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property CoreGraphics MBS MacCG Plugin 2.7 Yes No No Yes, macOS only No
Function: Returns the image's width.
Notes:
Returns 0 on error.
(Read only property)

Feedback, Comments & Corrections

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




Links
MBS Xojo Plugins