Table of Contents

Class CGColorSpace

Namespace
CarinaStudio.MacOS.CoreGraphics
Assembly
CarinaStudio.AppBase.MacOS.dll

CGColorSpace.

public class CGColorSpace : CFObject, IShareableDisposable<CFObject>, IDisposable
Inheritance
CGColorSpace
Implements
Inherited Members
Extension Methods

Properties

AdobeRGB1998

Get Adobe RGB (1998) color space.

public static CGColorSpace AdobeRGB1998 { get; }

Property Value

CGColorSpace

DisplayP3

Get Display-P3 color space.

public static CGColorSpace DisplayP3 { get; }

Property Value

CGColorSpace

GenericCMYK

Get generic CMYK color space.

public static CGColorSpace GenericCMYK { get; }

Property Value

CGColorSpace

GenericGray

Get generic gray color space.

public static CGColorSpace GenericGray { get; }

Property Value

CGColorSpace

GenericGrayGamma2_2

Get generic gry with gamma 2.2 color space.

public static CGColorSpace GenericGrayGamma2_2 { get; }

Property Value

CGColorSpace

GenericRGB

Get generic RGB color space.

public static CGColorSpace GenericRGB { get; }

Property Value

CGColorSpace

GenericRGBLinear

Get generic linear RGB color space.

public static CGColorSpace GenericRGBLinear { get; }

Property Value

CGColorSpace

Model

Get model of color space.

public CGColorSpaceModel Model { get; }

Property Value

CGColorSpaceModel

Name

Get name of color space.

public string? Name { get; }

Property Value

string

SRGB

Get sRGB color space.

public static CGColorSpace SRGB { get; }

Property Value

CGColorSpace

Methods

FromDisplay(uint)

Get color space of given display.

public static CGColorSpace FromDisplay(uint display)

Parameters

display uint

ID of display.

Returns

CGColorSpace

Color space of display.

FromIccProfile(CFData)

Create color space from ICC profile.

public static CGColorSpace FromIccProfile(CFData iccProfile)

Parameters

iccProfile CFData

CFData contains ICC profile.

Returns

CGColorSpace

Color space.

ToIccProfile()

Copy color space as ICC profile.

public CFData ToIccProfile()

Returns

CFData

CFData contains ICC profile.

ToString()

Returns a string that represents the current object.

public override string? ToString()

Returns

string

A string that represents the current object.