UIKit.UIColor: Method Members

The methods of UIKit.UIColor are listed below. For a list of all members, see the UIColor Members list.

See Also: Inherited members from Foundation.NSObject

Public Methods

ColorWithAlpha(nfloat) : UIColor
Creates a new color with the specified alpha channel from a reference color.
Copy(Foundation.NSZone) : Foundation.NSObject
Performs a copy of the underlying Objective-C object.
EncodeTo(Foundation.NSCoder)
Encodes the state of the object on the provided encoder
static
FromCGColor(CoreGraphics.CGColor) : UIColor
Creates a UIColor based on the Core Graphics Quartz color reference.
static
FromCIColor(CoreImage.CIColor) : UIColor
Creates a UIColor from a CoreImage CIColor.
static
FromHSB(nfloat, nfloat, nfloat) : UIColor
Creates a color from using the hue, saturation and brightness components.
static
FromHSBA(nfloat, nfloat, nfloat, nfloat) : UIColor
Creates a color from using the hue, saturation, brightness and alpha components.
static
FromPatternImage(UIImage) : UIColor
Creates a UIColor based on an image, the color can then be used as a brush to paint with the image.
static
FromRGB(byte, byte, byte) : UIColor
Creates a solid color using the red, green and blue components specified.
static
FromRGB(int, int, int) : UIColor
Creates a color from the specified combinated of red, green, and blue components.
static
FromRGB(nfloat, nfloat, nfloat) : UIColor
Creates a solid color using the red, green and blue components specified.
static
FromRGBA(byte, byte, byte, byte) : UIColor
Creates a color with the specified alpha transparency using the red, green and blue components specified.
static
FromRGBA(int, int, int, int) : UIColor
Creates a color from the specified combination of red, green, and blue elements, with the specified transparency.
static
FromRGBA(nfloat, nfloat, nfloat, nfloat) : UIColor
Creates a color with the specified alpha transparency using the red, green and blue components specified.
static
FromWhiteAlpha(nfloat, nfloat) : UIColor
Creates a grayscale color, based on the current colorspace.
GetHSBA(out nfloat, out nfloat, out nfloat, out nfloat)
Returns the hue, saturation, brightness and alpha components of the color.
GetRGBA(out nfloat, out nfloat, out nfloat, out nfloat)
Returns the red, green, blue and alpha components of this color.
GetWhite(out nfloat, out nfloat) : bool
The grayscale components of the color.
SetColor()
Sets both the fill and stroke color for drawing.
SetFill()
Sets the fill color for drawing.
SetStroke()
Sets the stroke color for drawing.
override
ToString() : string
Returns a string representation of the value of the current instance.

Protected Methods

override
Dispose(bool)
Releases the resources used by the UIColor object.