Share via


UIColor.FromRGB 方法

定义

重载

FromRGB(Byte, Byte, Byte)

使用指定的红色、绿色和蓝色分量创建纯色。

FromRGB(Int32, Int32, Int32)

根据指定的红色、绿色和蓝色分量组合创建颜色。

FromRGB(nfloat, nfloat, nfloat)

使用指定的红色、绿色和蓝色分量创建纯色。

FromRGB(Byte, Byte, Byte)

使用指定的红色、绿色和蓝色分量创建纯色。

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

参数

red
Byte

红色分量,0 到 255。

green
Byte

绿色组件 0 到 255。

blue
Byte

蓝色分量值 0 到 255。

返回

注解

这可以从后台线程使用。

适用于

FromRGB(Int32, Int32, Int32)

根据指定的红色、绿色和蓝色分量组合创建颜色。

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

参数

red
Int32
green
Int32
blue
Int32

返回

注解

这可以从后台线程使用。

适用于

FromRGB(nfloat, nfloat, nfloat)

使用指定的红色、绿色和蓝色分量创建纯色。

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

参数

red
nfloat

红色分量,0.0 到 1.0f。

green
nfloat

绿色组件 0.0 到 1.0f。

blue
nfloat

蓝色分量值 0.0 到 1.0f。

返回

注解

这可以从后台线程使用。

适用于