CGColor CGColor Class

Definition

Color structure.

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

Constructors

CGColor(IntPtr) CGColor(IntPtr)
CGColor(String) CGColor(String)
CGColor(CGColor, nfloat) CGColor(CGColor, nfloat)

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

CGColor(CGColorSpace, nfloat[]) CGColor(CGColorSpace, nfloat[])

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

CGColor(nfloat, nfloat) CGColor(nfloat, nfloat)

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

CGColor(CGColorSpace, CGPattern, nfloat[]) CGColor(CGColorSpace, CGPattern, nfloat[])

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

CGColor(nfloat, nfloat, nfloat) CGColor(nfloat, nfloat, nfloat)

Creates a color from red, green and blue components.

CGColor(nfloat, nfloat, nfloat, nfloat) CGColor(nfloat, nfloat, nfloat, nfloat)

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

Properties

Alpha Alpha

The alpha channel value.

ColorSpace ColorSpace

The color's colorspace.

Components Components

The components for this color.

Handle Handle

Handle (pointer) to the unmanaged object representation.

NumberOfComponents NumberOfComponents

The number of components in this color.

Pattern Pattern

If present, the pattern for this color.

Methods

Dispose() Dispose()

Releases the resources used by the CGColor object.

Dispose(Boolean) Dispose(Boolean)

Releases the resources used by the CGColor object.

Equals(Object) Equals(Object)

Determines if the objects are equal.

Finalize() Finalize()

Finalizer for the CGColor object

GetHashCode() GetHashCode()

Get the hashcode for this color.

Operators

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

Applies to