CGColorSpace CGColorSpace Class

Definition

Colorspace, determines how Quartz interprets color information.

public class CGColorSpace : IDisposable, ObjCRuntime.INativeObject
type CGColorSpace = class
    interface INativeObject
    interface IDisposable
Inheritance
CGColorSpaceCGColorSpace
Implements

Constructors

CGColorSpace(CFPropertyList) CGColorSpace(CFPropertyList)
CGColorSpace(IntPtr) CGColorSpace(IntPtr)

Fields

Null Null

The Null colorspace.

Properties

Components Components

Number of components on this colorspace.

Handle Handle

Handle (pointer) to the unmanaged object representation.

IsWideGamutRgb IsWideGamutRgb

Gets a value that tells whether the color space supports wide gamut colors.

Model Model

The colorspace model.

Name Name

Gets the color space name.

SupportsOutput SupportsOutput

Gets a Boolean value that tells whether the color space supports output.

Methods

CreateAcesCGLinear() CreateAcesCGLinear()

Creates and returns a CGColorSpace that represents an ACEScg color space.

CreateAdobeRgb1988() CreateAdobeRgb1988()

Creates and returns a CGColorSpace that represents an Adobe RGB (1998) color space.

CreateCalibratedGray(nfloat[], nfloat[], nfloat) CreateCalibratedGray(nfloat[], nfloat[], nfloat)

Creates a new calibrated gray colorspace.

CreateCalibratedRGB(nfloat[], nfloat[], nfloat[], nfloat[]) CreateCalibratedRGB(nfloat[], nfloat[], nfloat[], nfloat[])

Creates a new calibrated RGB colorspace.

CreateDeviceCmyk() CreateDeviceCmyk()

Creates and returns a CGColorSpace that represents a device dependent CMYK color space.

CreateDeviceCMYK() CreateDeviceCMYK()

Creates a new CMYK device dependent color space.

CreateDeviceGray() CreateDeviceGray()

Creates a new gray device dependent color space.

CreateDeviceRGB() CreateDeviceRGB()

Creates and returns a device dependent RGB color space.

CreateGenericCmyk() CreateGenericCmyk()

Creates and returns a CGColorSpace that represents a generic CMYK color space.

CreateGenericGray() CreateGenericGray()

Creates and returns a generic Gray color space.

CreateGenericGrayGamma2_2() CreateGenericGrayGamma2_2()

Creates and returns a generic Gray color space with a gamma value of 2.2.

CreateGenericRgb() CreateGenericRgb()

Creates and returns a CGColorSpace that represents a generic RGB color space.

CreateGenericRgbLinear() CreateGenericRgbLinear()

Creates and returns a CGColorSpace that represents a generic linear RGB color space.

CreateGenericXyz() CreateGenericXyz()

Creates and returns a CGColorSpace that represents an device dependent CMYK color space.

CreateIccData(CGDataProvider) CreateIccData(CGDataProvider)
CreateIccData(NSData) CreateIccData(NSData)
CreateICCProfile(NSData) CreateICCProfile(NSData)

Developers should not use this deprecated method. Developers should use 'CreateIDCCData' instead.

CreateICCProfile(nfloat[], CGDataProvider, CGColorSpace) CreateICCProfile(nfloat[], CGDataProvider, CGColorSpace)
CreateIndexed(CGColorSpace, Int32, Byte[]) CreateIndexed(CGColorSpace, Int32, Byte[])

Creates an indexed color space based on the specified colorspace.

CreateItuR_2020() CreateItuR_2020()

Creates and returns a CGColorSpace that represents an ITU-R BT.2020 color space.

CreateItuR_709() CreateItuR_709()

Creates and returns a CGColorSpace that represents an ITU-R BT.709 color space.

CreateLab(nfloat[], nfloat[], nfloat[]) CreateLab(nfloat[], nfloat[], nfloat[])
CreatePattern(CGColorSpace) CreatePattern(CGColorSpace)

Creates and returns a pattern color space.

CreateRommRgb() CreateRommRgb()

Creates and returns a CGColorSpace that represents a ROMM RGB color space.

CreateSrgb() CreateSrgb()

Creates and returns a CGColorSpace that represents an sRGB color space.

CreateWithName(String) CreateWithName(String)

Creates a named color space. Valid names are available in CGColorSpaceNames.

Dispose() Dispose()

Releases the resources used by the CGColorSpace object.

Dispose(Boolean) Dispose(Boolean)

Releases the resources used by the CGColorSpace object.

Finalize() Finalize()

Finalizer for the CGColorSpace object

GetBaseColorSpace() GetBaseColorSpace()

Tthe base colorspace.

GetColorTable() GetColorTable()

Return the entries of the color table used in an indexed color space

GetIccData() GetIccData()

Gets the ICC data for the color space.

GetICCProfile() GetICCProfile()

Gets an ICC color profile representation of the color space.

ToPropertyList() ToPropertyList()

Applies to

See also