UIColor.FromRGB UIColor.FromRGB Method

Definition

Overloads

FromRGB(Byte, Byte, Byte) FromRGB(Byte, Byte, Byte)

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

FromRGB(Int32, Int32, Int32) FromRGB(Int32, Int32, Int32)

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

FromRGB(nfloat, nfloat, nfloat) FromRGB(nfloat, nfloat, nfloat)

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

FromRGB(Byte, Byte, Byte) 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 Byte

Red component, 0 to 255.

green
Byte Byte

Green component 0 to 255.

blue
Byte Byte

Blue component value 0 to 255.

Returns

Remarks

This can be used from a background thread.

FromRGB(Int32, Int32, Int32) 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 Int32
green
Int32 Int32
blue
Int32 Int32

Returns

Remarks

This can be used from a background thread.

FromRGB(nfloat, nfloat, nfloat) 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 nfloat

Red component, 0.0 to 1.0f.

green
nfloat nfloat

Green component 0.0 to 1.0f.

blue
nfloat nfloat

Blue component value 0.0 to 1.0f.

Returns

Remarks

This can be used from a background thread.

Applies to