Table of Contents

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

NSColorSpace

CGColorSpace

Get CGColorSpace which is used for creating the instance.

public CGColorSpace? CGColorSpace { get; }

Property Value

CGColorSpace

ColorSpaceModel

Get color model of color space.

public NSColorSpace.Model ColorSpaceModel { get; }

Property Value

NSColorSpace.Model

DeviceCMYK

Get predefined color space: Device CMYK.

public static NSColorSpace DeviceCMYK { get; }

Property Value

NSColorSpace

DeviceGray

Get predefined color space: Device gray.

public static NSColorSpace DeviceGray { get; }

Property Value

NSColorSpace

DeviceRGB

Get predefined color space: Device RGB.

public static NSColorSpace DeviceRGB { get; }

Property Value

NSColorSpace

DisplayP3

Get predefined color space: Display-P3.

public static NSColorSpace DisplayP3 { get; }

Property Value

NSColorSpace

ExtendedGenericGamma22Gray

Get predefined color space: Extended generic gray with gamma 2.2.

public static NSColorSpace ExtendedGenericGamma22Gray { get; }

Property Value

NSColorSpace

ExtendedSRGB

Get predefined color space: Extended sRGB.

public static NSColorSpace ExtendedSRGB { get; }

Property Value

NSColorSpace

GenericCMYK

Get predefined color space: Generic CMYK.

public static NSColorSpace GenericCMYK { get; }

Property Value

NSColorSpace

GenericGamma22Gray

Get predefined color space: Generic gray with gamma 2.2.

public static NSColorSpace GenericGamma22Gray { get; }

Property Value

NSColorSpace

GenericGray

Get predefined color space: Generic gray.

public static NSColorSpace GenericGray { get; }

Property Value

NSColorSpace

GenericRGB

Get predefined color space: Generic RGB.

public static NSColorSpace GenericRGB { get; }

Property Value

NSColorSpace

IccProfileData

Get CFData which contains ICC profile for creating the instance.

public CFData? IccProfileData { get; }

Property Value

CFData

LocalizedName

Get localized name of color space.

public string? LocalizedName { get; }

Property Value

string

NumberOfColorComponents

Get number of color components excluding alpha component.

public int NumberOfColorComponents { get; }

Property Value

int

SRGB

Get predefined color space: sRGB.

public static NSColorSpace SRGB { get; }

Property Value

NSColorSpace

Methods

FromCGColorSpace(CGColorSpace)

public static NSColorSpace FromCGColorSpace(CGColorSpace colorSpace)

Parameters

colorSpace CGColorSpace

CGColorSpace.

Returns

NSColorSpace

Color space.

FromIccProfile(CFData)

Create NSColorSpace from ICC profile.

public static NSColorSpace FromIccProfile(CFData iccProfile)

Parameters

iccProfile CFData

Data 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

model NSColorSpace.Model

Color 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.