共用方式為


CIColor.FromRgb 方法

定義

多載

FromRgb(nfloat, nfloat, nfloat)

CIColor從提供的 redgreenblue 值建立 。

FromRgb(nfloat, nfloat, nfloat, CGColorSpace)

FromRgb(nfloat, nfloat, nfloat)

CIColor從提供的 redgreenblue 值建立 。

[Foundation.Export("colorWithRed:green:blue:")]
public static CoreImage.CIColor FromRgb (nfloat red, nfloat green, nfloat blue);
static member FromRgb : nfloat * nfloat * nfloat -> CoreImage.CIColor

參數

red
nfloat
green
nfloat
blue
nfloat

傳回

屬性

適用於

FromRgb(nfloat, nfloat, nfloat, CGColorSpace)

[Foundation.Export("colorWithRed:green:blue:colorSpace:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 12, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static CoreImage.CIColor FromRgb (nfloat red, nfloat green, nfloat blue, CoreGraphics.CGColorSpace colorSpace);
static member FromRgb : nfloat * nfloat * nfloat * CoreGraphics.CGColorSpace -> CoreImage.CIColor

參數

red
nfloat
green
nfloat
blue
nfloat
colorSpace
CGColorSpace

傳回

屬性

適用於