CGColor Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Color structure.
public class CGColor : CoreFoundation.NativeObject
type CGColor = class
inherit NativeObject
- Inheritance
Constructors
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) | |