iOS Guides | Samples

CoreGraphics.CGColor Class

Color structure.

See Also: CGColor

Syntax

public class CGColor : INativeObject, IDisposable

Remarks

Requirements

Namespace: CoreGraphics
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0

The members of CoreGraphics.CGColor are listed below.

See Also: Object

Public Constructors

Creates a color from an existing color, using the specified alpha value.
Creates a color on a colorspace, with the specified components.
Creates a color from a grey value and an alpha value.
Creates a color using the specified colorspace, pattern and components.
Creates a color from red, green and blue components.
Creates a color from red, green, blue and alpha components.

Public Properties

[read-only]
Alphanfloat. The alpha channel value.
[read-only]
ColorSpaceCGColorSpace. The color's colorspace.
[read-only]
Componentsnfloat[]. The components for this color.
[read-only]
HandleIntPtr. Handle (pointer) to the unmanaged object representation.
[read-only]
NumberOfComponentsnint. The number of components in this color.
[read-only]
PatternCGPattern. If present, the pattern for this color.

Public Methods

Dispose()
Releases the resources used by the CGColor object.
override
Equals(Object) : Boolean
Determines if the objects are equal.
Finalize()
Finalizer for the CGColor object
override
GetHashCode() : Int32
Get the hashcode for this color.

Protected Methods

Dispose(Boolean)
Releases the resources used by the CGColor object.

Public Operators