Platforms to show: All Mac Windows Linux Cross-Platform
CIContextMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | CoreImage | MBS MacCI Plugin | 7.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
- 4 properties
- property CGContext as CGContextMBS
- property description as String
- property Handle as Integer
- property Picture as Picture
- 23 methods
- method ClearCaches
- method Constructor
- method Constructor(cgcontext as CGContextMBS)
- method Constructor(cgcontext as CGContextMBS, OutputColorSpace as CGColorSpaceMBS, WorkingColorSpace as CGColorSpaceMBS, UseSoftwareRenderer as Boolean)
- method Constructor(Handle as Integer)
- method Constructor(Pic as Picture)
- method CreateCGImage(image as CIImageMBS, r as CGRectMBS = nil) as CGImageMBS
- method CreateCGImage(image as CIImageMBS, r as CGRectMBS, ColorSpace as CGColorSpaceMBS) as CGImageMBS
- method createCGLayer(size as CGSizeMBS, info as dictionary = nil) as CGLayerMBS
- method Destructor
- method DrawImage(ciImage as CIImageMBS)
- method DrawImageRect(ciImage as CIImageMBS, DestRect as CGRectMBS, SourceRect as CGRectMBS = nil)
- method Flush
- method HEIFRepresentationOfImage(Image as CIImageMBS, format as Integer = 24, colorSpace as CGColorSpaceMBS = nil, options as dictionary = nil) as MemoryBlock
- method JPEGRepresentationOfImage(Image as CIImageMBS, colorSpace as CGColorSpaceMBS = nil, options as dictionary = nil) as MemoryBlock
- method PNGRepresentationOfImage(Image as CIImageMBS, format as Integer = 24, colorSpace as CGColorSpaceMBS = nil, options as dictionary = nil) as MemoryBlock
- method ReclaimResources
- method TIFFRepresentationOfImage(Image as CIImageMBS, format as Integer = 24, colorSpace as CGColorSpaceMBS = nil, options as dictionary = nil) as MemoryBlock
- method writeHEIFRepresentationOfImage(Image as CIImageMBS, file as FolderItem, format as Integer = 24, colorSpace as CGColorSpaceMBS = nil, options as dictionary = nil, byref error as NSErrorMBS) as Boolean
- method writeJPEGRepresentationOfImage(Image as CIImageMBS, file as FolderItem, colorSpace as CGColorSpaceMBS = nil, options as dictionary = nil, byref error as NSErrorMBS) as Boolean
- method writePNGRepresentationOfImage(Image as CIImageMBS, file as FolderItem, format as Integer = 24, colorSpace as CGColorSpaceMBS = nil, options as dictionary = nil, byref error as NSErrorMBS) as Boolean
- method writeTIFFRepresentationOfImage(Image as CIImageMBS, file as FolderItem, format as Integer = 24, colorSpace as CGColorSpaceMBS = nil, options as dictionary = nil, byref error as NSErrorMBS) as Boolean
- 11 shared methods
- shared method kCIContextCacheIntermediates as String
- shared method kCIContextHighQualityDownsample as String
- shared method kCIContextOutputColorSpace as String
- shared method kCIContextOutputPremultiplied as String
- shared method kCIContextPriorityRequestLow as String
- shared method kCIContextUseSoftwareRenderer as String
- shared method kCIContextWorkingColorSpace as String
- shared method kCIContextWorkingFormat as String
- shared method kCIImageRepresentationAVDepthData as String
- shared method kCIImageRepresentationDepthImage as String
- shared method kCIImageRepresentationDisparityImage as String
- 19 constants
Formats
Constant | Value | Description |
---|---|---|
kCIFormatA16 | 4 |
Alpha with 16-bit. Available in macOS 10.11 or newer. |
kCIFormatA8 | 3 |
Alpha with 8-bit. Available in macOS 10.11 or newer. |
kCIFormatABGR8 | 46 |
ABGR with 8-bit. Available in macOS 10.11 or newer. |
kCIFormatAf | 6 |
Alpha with float values. Available in macOS 10.11 or newer. |
kCIFormatAh | 5 |
Alpha with half floating point. Available in macOS 10.11 or newer. |
kCIFormatARGB8 | 23 |
ARGB with 8-bit. |
kCIFormatBGRA8 | 22 |
BGRA with 8-bit. |
kCIFormatR16 | 37 |
Red with 16-bit. Available in macOS 10.11 or newer. |
kCIFormatR8 | 36 |
Red with 8-bit. Available in macOS 10.11 or newer. |
kCIFormatRf | 39 |
Red with floating point. Available in macOS 10.11 or newer. |
kCIFormatRG16 | 41 |
Red and green with 16-bit. Available in macOS 10.11 or newer. |
kCIFormatRG8 | 40 |
Red and green with 8-bit. Available in macOS 10.11 or newer. |
kCIFormatRGBA16 | 27 |
RGBA with 16-bit. |
kCIFormatRGBA8 | 24 |
RGBA with 8-bit. |
kCIFormatRGBAf | 34 |
RGBA with floating point. |
kCIFormatRGBAh | 31 |
RGBA values that are IEEE 754-2008 half float compliant. |
kCIFormatRGf | 43 |
Red and green with floating point values. Available in macOS 10.11 or newer. |
kCIFormatRGh | 42 |
Red and green with half precision floating point values. Available in macOS 10.11 or newer. |
kCIFormatRh | 38 |
Red with half precision floating point. Available in macOS 10.11 or newer. |
This class has no sub classes.
Some useful global functions for this class:
- NewCIContextMBS(cgcontext as CGContextMBS) as CIContextMBS
- NewCIContextMBS(cgcontext as CGContextMBS, OutputColorSpace as CGColorSpaceMBS, WorkingColorSpace as CGColorSpaceMBS, UseSoftwareRenderer as Boolean) as CIContextMBS
Some methods using this class:
- CIDetectorMBS.Constructor(type as string, context as CIContextMBS = nil, options as dictionary = nil)
- CIDetectorMBS.detectorOfType(type as string, context as CIContextMBS = nil, options as dictionary = nil) as CIDetectorMBS
Some examples using this class:
- /AVFoundation/Live Barcode Detection
- /AVFoundation/Live Barcode Detection iOS/Live Barcode Detection iOS
- /AVFoundation/Live Barcode Detection with Vision/Live Barcode Detection with Vision
- /MacCG/CoreImage/Gauss Blur Filter 2
- /MacCG/CoreImage/Ripple Transition filter/Ripple Transition filter
- /MacCG/CoreImage/Simple Filter
- /MacCG/Gauss Blur Filter
- /MacCG/Open Image using CoreImage
Blog Entries
- MBS Xojo Plugins in version 19.2
- MBS Xojo Plugins, version 19.2pr3
- Load RAW image on MacOS with options
- MBS Xojo Plugins, version 17.3pr3
- MBS Xojo / Real Studio Plugins, version 14.2pr4
- MBS Real Studio Plugins, version 13.1pr3
- MBS Real Studio Plugins, version 12.1pr5
Release notes
- Version 19.2
- Added writeHEIFRepresentationOfImage and HEIFRepresentationOfImage methods to CIContextMBS class.
- Version 17.3
- Added new file format functions for CIContextMBS class.
The items on this page are in the following plugins: MBS MacCI Plugin.
CIColorMBS - CIDataMatrixCodeDescriptorMBS