CGColor Class

Definition

Color structure.

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

Constructors

CGColor(CGColor, nfloat)

Creates a color from an existing color, using the specified alpha value.

CGColor(CGColorSpace, CGPattern, nfloat[])

Creates a color using the specified colorspace, pattern and components.

CGColor(CGColorSpace, nfloat[])

Creates a color on a colorspace, with the specified components.

CGColor(IntPtr)
CGColor(nfloat, nfloat)

Creates a color from a grey value and an alpha value.

CGColor(nfloat, nfloat, nfloat)

Creates a color from red, green and blue components.

CGColor(nfloat, nfloat, nfloat, nfloat)

Creates a color from red, green, blue and alpha components.

CGColor(String)

Properties

Alpha

The alpha channel value.

ColorSpace

The color's colorspace.

Components

The components for this color.

Handle

Handle (pointer) to the unmanaged object representation.

NumberOfComponents

The number of components in this color.

Pattern

If present, the pattern for this color.

Methods

Dispose()

Releases the resources used by the CGColor object.

Dispose(Boolean)

Releases the resources used by the CGColor object.

Equals(Object)

Determines if the objects are equal.

Finalize()

Finalizer for the CGColor object

GetHashCode()

Get the hashcode for this color.

Operators

Equality(CGColor, CGColor)
Inequality(CGColor, CGColor)

Applies to