CGColor Class

Definition

Color structure.

public class CGColor : CoreFoundation.NativeObject
type CGColor = class
    inherit NativeObject
Inheritance

Constructors

Name Description
CGColor(CGColor, NFloat)
CGColor(CGColorSpace, CGPattern, NFloat[])
CGColor(CGColorSpace, NFloat[])
CGColor(CGConstantColor)
CGColor(NFloat, NFloat, NFloat, NFloat)
CGColor(NFloat, NFloat, NFloat)
CGColor(NFloat, NFloat)
CGColor(String)

Properties

Name Description
Alpha

The alpha channel value.

AXName
ColorSpace

The color's colorspace.

Components

The components for this color.

ContentHeadroom

Get the content headroom for the color.

Handle (Inherited from DisposableObject)
NumberOfComponents

The number of components in this color.

Owns (Inherited from DisposableObject)
Pattern

If present, the pattern for this color.

Methods

Name Description
ClearHandle() (Inherited from DisposableObject)
CreateByMatchingToColorSpace(CGColorSpace, CGColorRenderingIntent, CGColor, NSDictionary)
CreateCmyk(NFloat, NFloat, NFloat, NFloat, NFloat)
CreateGenericGrayGamma2_2(NFloat, NFloat)
CreateSrgb(NFloat, NFloat, NFloat, NFloat)
CreateWithContentHeadroom(Single, CGColorSpace, NFloat, NFloat, NFloat, NFloat)

Create a CGColor with the specified content headroom, colorspace and color and alpha values.

Dispose() (Inherited from DisposableObject)
Dispose(Boolean) (Inherited from NativeObject)
Equals(Object)

Determines if the objects are equal.

GetCheckedHandle() (Inherited from DisposableObject)
GetHashCode()

Get the hashcode for this color.

InitializeHandle(NativeHandle) (Inherited from DisposableObject)
Release()
Retain()

Operators

Name Description
Equality(CGColor, CGColor)
Inequality(CGColor, CGColor)

Extension Methods

Name Description
GetHandle(INativeObject)
GetNonNullHandle(INativeObject, String)

Applies to