Class NSColorSpace
- Namespace
- CarinaStudio.MacOS.AppKit
- Assembly
- CarinaStudio.AppBase.MacOS.dll
NSColorSpace.
public class NSColorSpace : NSObject, IDisposable, IEquatable<NSObject>
- Inheritance
-
NSColorSpace
- Implements
- Inherited Members
- Extension Methods
Properties
AdobeRGB1998
Get predefined color space: Adobe RGB 1998.
public static NSColorSpace AdobeRGB1998 { get; }
Property Value
CGColorSpace
Get CGColorSpace which is used for creating the instance.
public CGColorSpace? CGColorSpace { get; }
Property Value
ColorSpaceModel
Get color model of color space.
public NSColorSpace.Model ColorSpaceModel { get; }
Property Value
DeviceCMYK
Get predefined color space: Device CMYK.
public static NSColorSpace DeviceCMYK { get; }
Property Value
DeviceGray
Get predefined color space: Device gray.
public static NSColorSpace DeviceGray { get; }
Property Value
DeviceRGB
Get predefined color space: Device RGB.
public static NSColorSpace DeviceRGB { get; }
Property Value
DisplayP3
Get predefined color space: Display-P3.
public static NSColorSpace DisplayP3 { get; }
Property Value
ExtendedGenericGamma22Gray
Get predefined color space: Extended generic gray with gamma 2.2.
public static NSColorSpace ExtendedGenericGamma22Gray { get; }
Property Value
ExtendedSRGB
Get predefined color space: Extended sRGB.
public static NSColorSpace ExtendedSRGB { get; }
Property Value
GenericCMYK
Get predefined color space: Generic CMYK.
public static NSColorSpace GenericCMYK { get; }
Property Value
GenericGamma22Gray
Get predefined color space: Generic gray with gamma 2.2.
public static NSColorSpace GenericGamma22Gray { get; }
Property Value
GenericGray
Get predefined color space: Generic gray.
public static NSColorSpace GenericGray { get; }
Property Value
GenericRGB
Get predefined color space: Generic RGB.
public static NSColorSpace GenericRGB { get; }
Property Value
IccProfileData
Get CFData which contains ICC profile for creating the instance.
public CFData? IccProfileData { get; }
Property Value
LocalizedName
Get localized name of color space.
public string? LocalizedName { get; }
Property Value
NumberOfColorComponents
Get number of color components excluding alpha component.
public int NumberOfColorComponents { get; }
Property Value
SRGB
Get predefined color space: sRGB.
public static NSColorSpace SRGB { get; }
Property Value
Methods
FromCGColorSpace(CGColorSpace)
Create NSColorSpace from CGColorSpace.
public static NSColorSpace FromCGColorSpace(CGColorSpace colorSpace)
Parameters
colorSpaceCGColorSpace
Returns
- NSColorSpace
Color space.
FromIccProfile(CFData)
Create NSColorSpace from ICC profile.
public static NSColorSpace FromIccProfile(CFData iccProfile)
Parameters
iccProfileCFDataData contains ICC profile.
Returns
- NSColorSpace
Color space.
GetAvailableColorSpaces(Model)
Get color spaces which support given color model.
public static NSColorSpace[] GetAvailableColorSpaces(NSColorSpace.Model model)
Parameters
modelNSColorSpace.ModelColor model.
Returns
- NSColorSpace[]
Available color spaces.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.