Platforms to show: All Mac Windows Linux Cross-Platform
CGColorMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | CoreGraphics | MBS MacCG Plugin | 4.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
- property Handle as Integer
- 7 methods
- method Alpha as Double
- method ColorSpace as CGColorSpaceMBS
- method Components as memoryblock
- method Copy as CGColorMBS
- method CopyWithAlpha(alpha as Double) as CGColorMBS
- method Equal(secondColor as CGColorMBS) as boolean
- method NumberOfComponents as Integer
- 11 shared methods
- shared method Black as CGColorMBS
- shared method Clear as CGColorMBS
- shared method Create(colorspace as CGColorSpaceMBS, components as memoryblock) as CGColorMBS
- shared method Create(colorspace as CGColorSpaceMBS, components() as Double) as CGColorMBS
- shared method CreateDeviceCMYK(cyan as Double, magenta as Double, yellow as Double, black as Double, alpha as Double = 1.0) as CGColorMBS
- shared method CreateDeviceGray(gray as Double, alpha as Double = 1.0) as CGColorMBS
- shared method CreateDeviceRGB(red as Double, green as Double, blue as Double, alpha as Double = 1.0) as CGColorMBS
- shared method CreateGenericCMYK(cyan as Double, magenta as Double, yellow as Double, black as Double, alpha as Double = 1.0) as CGColorMBS
- shared method CreateGenericGray(gray as Double, alpha as Double = 1.0) as CGColorMBS
- shared method CreateGenericRGB(red as Double, green as Double, blue as Double, alpha as Double = 1.0) as CGColorMBS
- shared method White as CGColorMBS
This class has no sub classes.
Some methods using this class:
- CGContextMBS.SetFillColor(color as CGColorMBS)
- CGContextMBS.SetShadowWithColor(x as Double, y as Double, blur as Double, colorvalue as CGColorMBS)
- CGContextMBS.SetStrokeColor(color as CGColorMBS)
- CGGradientMBS.CreateWithColors(colorSpace as CGColorSpaceMBS, colors() as CGColorMBS) as CGGradientMBS
- CGGradientMBS.CreateWithColors(colorSpace as CGColorSpaceMBS, colors() as CGColorMBS, locations() as Double) as CGGradientMBS
- CIColorMBS.colorWithCGColor(ColorValue as CGColorMBS) as CIColorMBS
- CIColorMBS.Constructor(ColorValue as CGColorMBS)
Some examples using this class:
- /AVFoundation/AVVideoWall
- /AVFoundation/iOS Live QRCode Detect/iOS Live QRCode Detect
- /AVFoundation/Live Barcode Detection iOS/Live Barcode Detection iOS
- /AVFoundation/Screen Input
- /AVFoundation/Screen Recorder
- /AVFoundation/Simple Player
- /MacCG/CGGradient test
- /MacCG/CoreText/CoreText Dynamic Text Height
- /MacCG/CoreText/CoreText Test
- /MacCG/Mac ColorSpace tests
Blog Entries
- Colorspaces in MacOS with Xojo
- MBS Real Studio Plugins, version 13.1pr16
- MBS REALbasic plug-ins version 9.5
Release notes
- Version 18.0
- Fixed bug in CGColorMBS.Create.
The items on this page are in the following plugins: MBS MacCG Plugin.
CGBitmapContextMBS - CGColorSpaceMBS