Share via


NSColor.FromRgba 方法

定义

重载

FromRgba(Byte, Byte, Byte, Byte)
FromRgba(Int32, Int32, Int32, Int32)
FromRgba(nfloat, nfloat, nfloat, nfloat)

FromRgba(Byte, Byte, Byte, Byte)

public static AppKit.NSColor FromRgba (byte red, byte green, byte blue, byte alpha);
static member FromRgba : byte * byte * byte * byte -> AppKit.NSColor

参数

red
Byte
green
Byte
blue
Byte
alpha
Byte

返回

适用于

FromRgba(Int32, Int32, Int32, Int32)

public static AppKit.NSColor FromRgba (int red, int green, int blue, int alpha);
static member FromRgba : int * int * int * int -> AppKit.NSColor

参数

red
Int32
green
Int32
blue
Int32
alpha
Int32

返回

适用于

FromRgba(nfloat, nfloat, nfloat, nfloat)

[Foundation.Export("colorWithRed:green:blue:alpha:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 9, ObjCRuntime.PlatformArchitecture.All, null)]
public static AppKit.NSColor FromRgba (nfloat red, nfloat green, nfloat blue, nfloat alpha);
static member FromRgba : nfloat * nfloat * nfloat * nfloat -> AppKit.NSColor

参数

red
nfloat
green
nfloat
blue
nfloat
alpha
nfloat

返回

属性

适用于