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
DisplayP3
Get Display-P3 color space.
public static CGColorSpace DisplayP3 { get; }
Property Value
GenericCMYK
Get generic CMYK color space.
public static CGColorSpace GenericCMYK { get; }
Property Value
GenericGray
Get generic gray color space.
public static CGColorSpace GenericGray { get; }
Property Value
GenericGrayGamma2_2
Get generic gry with gamma 2.2 color space.
public static CGColorSpace GenericGrayGamma2_2 { get; }
Property Value
GenericRGB
Get generic RGB color space.
public static CGColorSpace GenericRGB { get; }
Property Value
GenericRGBLinear
Get generic linear RGB color space.
public static CGColorSpace GenericRGBLinear { get; }
Property Value
Model
Get model of color space.
public CGColorSpaceModel Model { get; }
Property Value
Name
Get name of color space.
public string? Name { get; }
Property Value
SRGB
Get sRGB color space.
public static CGColorSpace SRGB { get; }
Property Value
Methods
FromDisplay(uint)
Get color space of given display.
public static CGColorSpace FromDisplay(uint display)
Parameters
displayuintID of display.
Returns
- CGColorSpace
Color space of display.
FromIccProfile(CFData)
Create color space from ICC profile.
public static CGColorSpace FromIccProfile(CFData iccProfile)
Parameters
Returns
- CGColorSpace
Color space.
ToIccProfile()
Copy color space as ICC profile.
public CFData ToIccProfile()
Returns
ToString()
Returns a string that represents the current object.
public override string? ToString()
Returns
- string
A string that represents the current object.