UIColor.FromRGB Method

Definition

Overloads

FromRGB(Byte, Byte, Byte)

Creates a solid color using the red, green and blue components specified.

FromRGB(Int32, Int32, Int32)

Creates a color from the specified combinated of red, green, and blue components.

FromRGB(nfloat, nfloat, nfloat)

Creates a solid color using the red, green and blue components specified.

FromRGB(Byte, Byte, Byte)

Creates a solid color using the red, green and blue components specified.

public static UIKit.UIColor FromRGB (byte red, byte green, byte blue);
static member FromRGB : byte * byte * byte -> UIKit.UIColor

Parameters

red
Byte

Red component, 0 to 255.

green
Byte

Green component 0 to 255.

blue
Byte

Blue component value 0 to 255.

Returns

Remarks

This can be used from a background thread.

Applies to

FromRGB(Int32, Int32, Int32)

Creates a color from the specified combinated of red, green, and blue components.

public static UIKit.UIColor FromRGB (int red, int green, int blue);
static member FromRGB : int * int * int -> UIKit.UIColor

Parameters

red
Int32
green
Int32
blue
Int32

Returns

Remarks

This can be used from a background thread.

Applies to

FromRGB(nfloat, nfloat, nfloat)

Creates a solid color using the red, green and blue components specified.

public static UIKit.UIColor FromRGB (nfloat red, nfloat green, nfloat blue);
static member FromRGB : nfloat * nfloat * nfloat -> UIKit.UIColor

Parameters

red
nfloat

Red component, 0.0 to 1.0f.

green
nfloat

Green component 0.0 to 1.0f.

blue
nfloat

Blue component value 0.0 to 1.0f.

Returns

Remarks

This can be used from a background thread.

Applies to