Share via


CGGradient 构造函数

定义

重载

CGGradient(CGColorSpace, CGColor[])
CGGradient(CGColorSpace, nfloat[])
CGGradient(CGColorSpace, CGColor[], nfloat[])
CGGradient(CGColorSpace, nfloat[], nfloat[])

CGGradient(CGColorSpace, CGColor[])

public CGGradient (CoreGraphics.CGColorSpace colorspace, CoreGraphics.CGColor[] colors);
new CoreGraphics.CGGradient : CoreGraphics.CGColorSpace * CoreGraphics.CGColor[] -> CoreGraphics.CGGradient

参数

colorspace
CGColorSpace
colors
CGColor[]

适用于

CGGradient(CGColorSpace, nfloat[])

public CGGradient (CoreGraphics.CGColorSpace colorspace, nfloat[] components);
new CoreGraphics.CGGradient : CoreGraphics.CGColorSpace * nfloat[] -> CoreGraphics.CGGradient

参数

colorspace
CGColorSpace
components
nfloat[]

适用于

CGGradient(CGColorSpace, CGColor[], nfloat[])

public CGGradient (CoreGraphics.CGColorSpace colorspace, CoreGraphics.CGColor[] colors, nfloat[] locations);
new CoreGraphics.CGGradient : CoreGraphics.CGColorSpace * CoreGraphics.CGColor[] * nfloat[] -> CoreGraphics.CGGradient

参数

colorspace
CGColorSpace
colors
CGColor[]
locations
nfloat[]

适用于

CGGradient(CGColorSpace, nfloat[], nfloat[])

public CGGradient (CoreGraphics.CGColorSpace colorspace, nfloat[] components, nfloat[] locations);
new CoreGraphics.CGGradient : CoreGraphics.CGColorSpace * nfloat[] * nfloat[] -> CoreGraphics.CGGradient

参数

colorspace
CGColorSpace
components
nfloat[]
locations
nfloat[]

适用于