SKColorSpace Class

Definition

Represents a color space.

public class SKColorSpace : SkiaSharp.SKObject
Inheritance

Properties

GammaIsCloseToSrgb

Gets a value indicating whether or not the color space gamma is near enough to be approximated as sRGB.

GammaIsLinear

Gets a value indicating whether or not the color space gamma is linear.

Handle

Gets or sets the handle to the underlying native object.

(Inherited from SKObject)
IsNumericalTransferFunction

Gets a value indicating whether the transfer function can be represented as coefficients to the standard equation.

IsSrgb

Gets a value indicating whether or not the color space is sRGB.

NamedGamma

Gets the gamma of the color space.

OwnsHandle

Gets a value indicating whether this object should destroy the underlying native object.

(Inherited from SKObject)
Type

Gets the color space type.

Methods

ConvertPrimariesToXyzD50(SKColorSpacePrimaries)

Converts primaries and a white point to a XYZ D50 matrix, the preferred color gamut representation of SKColorSpace.

ConvertPrimariesToXyzD50(SKColorSpacePrimaries, SKMatrix44)

Converts primaries and a white point to a XYZ D50 matrix, the preferred color gamut representation of SKColorSpace.

CreateIcc(Byte[])

Creates a new instance of SKColorSpace from an ICC profile.

CreateIcc(Byte[], Int64)

Creates a new instance of SKColorSpace from an ICC profile.

CreateIcc(IntPtr, Int64)

Creates a new instance of SKColorSpace from an ICC profile.

CreateRgb(SKColorSpaceRenderTargetGamma, SKColorSpaceGamut)

Creates a new instance of SKColorSpace from a transfer function and a color gamut.

CreateRgb(SKColorSpaceRenderTargetGamma, SKColorSpaceGamut, SKColorSpaceFlags)

Creates a new instance of SKColorSpace from a transfer function and a color gamut.

CreateRgb(SKColorSpaceRenderTargetGamma, SKMatrix44)

Creates a new instance of SKColorSpace from a transfer function and a color gamut.

CreateRgb(SKColorSpaceRenderTargetGamma, SKMatrix44, SKColorSpaceFlags)

Creates a new instance of SKColorSpace from a transfer function and a color gamut.

CreateRgb(SKColorSpaceTransferFn, SKColorSpaceGamut)

Creates a new instance of SKColorSpace from a transfer function and a color gamut.

CreateRgb(SKColorSpaceTransferFn, SKColorSpaceGamut, SKColorSpaceFlags)

Creates a new instance of SKColorSpace from a transfer function and a color gamut.

CreateRgb(SKColorSpaceTransferFn, SKMatrix44)

Creates a new instance of SKColorSpace from a transfer function and a color gamut.

CreateRgb(SKColorSpaceTransferFn, SKMatrix44, SKColorSpaceFlags)

Creates a new instance of SKColorSpace from a transfer function and a color gamut.

CreateRgb(SKNamedGamma, SKColorSpaceGamut)

Creates a new instance of SKColorSpace from a named gamma and a color gamut.

CreateRgb(SKNamedGamma, SKMatrix44)

Creates a new instance of SKColorSpace from a named gamma and a color gamut.

CreateSrgb()

Creates a new instance of SKColorSpace that represents the sRGB color space.

CreateSrgbLinear()

Creates a new instance of SKColorSpace with the sRGB primaries, but a linear (1.0) gamma

Dispose()

Releases all resources used by this SKNativeObject.

(Inherited from SKNativeObject)
Dispose(Boolean)

Releases the unmanaged resources used by the SKColorSpace and optionally releases the managed resources.

Equal(SKColorSpace, SKColorSpace)

Compare two color spaces to determine if they are equivalent.

FromXyzD50()

Describes color space gamut as a transformation from XYZ D50.

GetNumericalTransferFunction(SKColorSpaceTransferFn)

Returns the values of the coefficients to the standard equation.

ToXyzD50()

Describes color space gamut as a transformation to XYZ D50.

ToXyzD50(SKMatrix44)

Converts the color space to a XYZ D50 matrix that describes the color space.

Applies to