SKShader.CreateTwoPointConicalGradient 方法

定義

多載

名稱 Description
CreateTwoPointConicalGradient(SKPoint, Single, SKPoint, Single, SKColorF[], SKColorSpace, Single[], SKShaderTileMode, SKMatrix)

建立一個著色器,在指定的色彩空間中產生錐形漸層。

CreateTwoPointConicalGradient(SKPoint, Single, SKPoint, Single, SKColor[], SKShaderTileMode)

建立一個著色器,給定兩個圓圈時產生錐形梯度。

CreateTwoPointConicalGradient(SKPoint, Single, SKPoint, Single, SKColor[], Single[], SKShaderTileMode)

建立一個著色器,給定兩個圓圈時產生錐形梯度。

CreateTwoPointConicalGradient(SKPoint, Single, SKPoint, Single, SKColorF[], SKColorSpace, SKShaderTileMode)

建立一個著色器,在指定的色彩空間中產生錐形漸層。

CreateTwoPointConicalGradient(SKPoint, Single, SKPoint, Single, SKColor[], Single[], SKShaderTileMode, SKMatrix)

建立一個著色器,給定兩個圓圈時產生錐形梯度。

CreateTwoPointConicalGradient(SKPoint, Single, SKPoint, Single, SKColorF[], SKColorSpace, Single[], SKShaderTileMode)

建立一個著色器,在指定的色彩空間中產生錐形漸層。

CreateTwoPointConicalGradient(SKPoint, Single, SKPoint, Single, SKColorF[], SKColorSpace, Single[], SKShaderTileMode, SKMatrix)

建立一個著色器,在指定的色彩空間中產生錐形漸層。

public static SkiaSharp.SKShader CreateTwoPointConicalGradient(SkiaSharp.SKPoint start, float startRadius, SkiaSharp.SKPoint end, float endRadius, SkiaSharp.SKColorF[] colors, SkiaSharp.SKColorSpace colorspace, float[] colorPos, SkiaSharp.SKShaderTileMode mode, SkiaSharp.SKMatrix localMatrix);

參數

start
SKPoint

起點的座標。

startRadius
Single

起點的半徑。

end
SKPoint

終點的座標。

endRadius
Single

端點的半徑。

colors
SKColorF[]

分配到兩點之間的顏色陣列。

colorspace
SKColorSpace

漸層色彩的色彩空間。

colorPos
Single[]

每個對應顏色的位置(0..1 範圍內),或 null 是均勻分布顏色。

mode
SKShaderTileMode

平鋪模式。

localMatrix
SKMatrix

套用著色器前要套用矩陣。

傳回

錯誤時會回傳新的 SKShader,或是空的著色器。

適用於

CreateTwoPointConicalGradient(SKPoint, Single, SKPoint, Single, SKColor[], SKShaderTileMode)

建立一個著色器,給定兩個圓圈時產生錐形梯度。

public static SkiaSharp.SKShader CreateTwoPointConicalGradient(SkiaSharp.SKPoint start, float startRadius, SkiaSharp.SKPoint end, float endRadius, SkiaSharp.SKColor[] colors, SkiaSharp.SKShaderTileMode mode);

參數

start
SKPoint

起點的座標。

startRadius
Single

起點的半徑。

end
SKPoint

終點的座標。

endRadius
Single

端點的半徑。

colors
SKColor[]

陣列顏色分配到兩點之間。

mode
SKShaderTileMode

平鋪模式。

傳回

退貨時是新的 SKShader,或 null 是錯誤的。

適用於

CreateTwoPointConicalGradient(SKPoint, Single, SKPoint, Single, SKColor[], Single[], SKShaderTileMode)

建立一個著色器,給定兩個圓圈時產生錐形梯度。

public static SkiaSharp.SKShader CreateTwoPointConicalGradient(SkiaSharp.SKPoint start, float startRadius, SkiaSharp.SKPoint end, float endRadius, SkiaSharp.SKColor[] colors, float[] colorPos, SkiaSharp.SKShaderTileMode mode);

參數

start
SKPoint

起點的座標。

startRadius
Single

起點的半徑。

end
SKPoint

終點的座標。

endRadius
Single

端點的半徑。

colors
SKColor[]

陣列顏色分配到兩點之間。

colorPos
Single[]

每個對應顏色的位置(0..1 範圍內),或 null 是均勻分布顏色。

mode
SKShaderTileMode

平鋪模式。

傳回

退貨時是新的 SKShader,或 null 是錯誤的。

適用於

CreateTwoPointConicalGradient(SKPoint, Single, SKPoint, Single, SKColorF[], SKColorSpace, SKShaderTileMode)

建立一個著色器,在指定的色彩空間中產生錐形漸層。

public static SkiaSharp.SKShader CreateTwoPointConicalGradient(SkiaSharp.SKPoint start, float startRadius, SkiaSharp.SKPoint end, float endRadius, SkiaSharp.SKColorF[] colors, SkiaSharp.SKColorSpace colorspace, SkiaSharp.SKShaderTileMode mode);

參數

start
SKPoint

起點的座標。

startRadius
Single

起點的半徑。

end
SKPoint

終點的座標。

endRadius
Single

端點的半徑。

colors
SKColorF[]

分配到兩點之間的顏色陣列。

colorspace
SKColorSpace

漸層色彩的色彩空間。

mode
SKShaderTileMode

平鋪模式。

傳回

錯誤時會回傳新的 SKShader,或是空的著色器。

適用於

CreateTwoPointConicalGradient(SKPoint, Single, SKPoint, Single, SKColor[], Single[], SKShaderTileMode, SKMatrix)

建立一個著色器,給定兩個圓圈時產生錐形梯度。

public static SkiaSharp.SKShader CreateTwoPointConicalGradient(SkiaSharp.SKPoint start, float startRadius, SkiaSharp.SKPoint end, float endRadius, SkiaSharp.SKColor[] colors, float[] colorPos, SkiaSharp.SKShaderTileMode mode, SkiaSharp.SKMatrix localMatrix);

參數

start
SKPoint

起點的座標。

startRadius
Single

起點的半徑。

end
SKPoint

終點的座標。

endRadius
Single

端點的半徑。

colors
SKColor[]

陣列顏色分配到兩點之間。

colorPos
Single[]

每個對應顏色的位置(0..1 範圍內),或 null 是均勻分布顏色。

mode
SKShaderTileMode

平鋪模式。

localMatrix
SKMatrix

套用著色器前要套用矩陣。

傳回

錯誤時會回傳新的 SKShader,或是空的著色器。 再也沒回來 null。

適用於

CreateTwoPointConicalGradient(SKPoint, Single, SKPoint, Single, SKColorF[], SKColorSpace, Single[], SKShaderTileMode)

建立一個著色器,在指定的色彩空間中產生錐形漸層。

public static SkiaSharp.SKShader CreateTwoPointConicalGradient(SkiaSharp.SKPoint start, float startRadius, SkiaSharp.SKPoint end, float endRadius, SkiaSharp.SKColorF[] colors, SkiaSharp.SKColorSpace colorspace, float[] colorPos, SkiaSharp.SKShaderTileMode mode);

參數

start
SKPoint

起點的座標。

startRadius
Single

起點的半徑。

end
SKPoint

終點的座標。

endRadius
Single

端點的半徑。

colors
SKColorF[]

分配到兩點之間的顏色陣列。

colorspace
SKColorSpace

漸層色彩的色彩空間。

colorPos
Single[]

每個對應顏色的位置(0..1 範圍內),或 null 是均勻分布顏色。

mode
SKShaderTileMode

平鋪模式。

傳回

錯誤時會回傳新的 SKShader,或是空的著色器。

適用於