Platforms to show: All Mac Windows Linux Cross-Platform

CGColorSpaceMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class CoreGraphics MBS MacCG Plugin 3.3 ✅ Yes ❌ No ❌ No ✅ Yes All
A class for a CoreGraphics color space.

Constants

Constant Value Description
kCGColorSpaceModelCMYK 2 One of the colorspace model constants. A CMYK color space model.

Available in Mac OS X v10.5 and later.
kCGColorSpaceModelDeviceN 4 One of the colorspace model constants. A DeviceN color space model.

Available in Mac OS X v10.5 and later.
kCGColorSpaceModelIndexed 5 One of the colorspace model constants. An indexed color space model.

Available in Mac OS X v10.5 and later.
kCGColorSpaceModelLab 3 One of the colorspace model constants. A Lab color space model.

Available in Mac OS X v10.5 and later.
kCGColorSpaceModelMonochrome 0 One of the colorspace model constants. A monochrome color space model.

Available in Mac OS X v10.5 and later.
kCGColorSpaceModelPattern 6 One of the colorspace model constants. A pattern color space model.

Available in Mac OS X v10.5 and later.
kCGColorSpaceModelRGB 1 One of the colorspace model constants. An RGB color space model.

Available in Mac OS X v10.5 and later.
kCGColorSpaceModelUnknown -1 One of the colorspace model constants. An unknown color space model.

Available in Mac OS X v10.5 and later.
kCGRenderingIntentAbsoluteColorimetric 1 One of the color rendering intents constants. Map colors outside of the gamut of the output device to the closest possible match inside the gamut of the output device. This can produce a clipping effect, where two different color values in the gamut of the graphics context are mapped to the same color value in the output device's gamut. Unlike the relative colorimetric, absolute colorimetric does not modify colors inside the gamut of the output device.
kCGRenderingIntentDefault 0 One of the color rendering intents constants. The default rendering intent for the graphics context.
kCGRenderingIntentPerceptual 3 One of the color rendering intents constants. Preserve the visual relationship between colors by compressing the gamut of the graphics context to fit inside the gamut of the output device. Perceptual intent is good for photographs and other complex, detailed images.
kCGRenderingIntentRelativeColorimetric 2 One of the color rendering intents constants. Map colors outside of the gamut of the output device to the closest possible match inside the gamut of the output device. This can produce a clipping effect, where two different color values in the gamut of the graphics context are mapped to the same color value in the output device's gamut. The relative colorimetric shifts all colors (including those within the gamut) to account for the difference between the white point of the graphics context and the white point of the output device.
kCGRenderingIntentSaturation 4 One of the color rendering intents constants. Preserve the relative saturation value of the colors when converting into the gamut of the output device. The result is an image with bright, saturated colors. Saturation intent is good for reproducing images with low detail, such as presentation charts and graphs.

This class has no sub classes.

Some useful global functions for this class:

Some methods using this class:

Some properties using for this class:

Some examples using this class:

Blog Entries

Release notes

  • Version 19.3
    • Changed Picture.CGColorSpaceMBS function to return default Generic RGB colorspace used by Xojo if no other is set for picture.

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


CGColorMBS   -   CGContextMBS


The biggest plugin in space...