SKImageFilter.CreatePointLitDiffuse 方法

定義

多載

名稱 Description
CreatePointLitDiffuse(SKPoint3, SKColor, Single, Single)

建立一個影像濾鏡,利用凹凸貼圖套用點光漫射光。

CreatePointLitDiffuse(SKPoint3, SKColor, Single, Single, SKImageFilter)

建立一個影像濾鏡,利用凹凸貼圖套用點光漫射光。

CreatePointLitDiffuse(SKPoint3, SKColor, Single, Single, SKImageFilter, SKRect)

建立一個影像濾鏡,利用凹凸貼圖套用點光漫射光。

CreatePointLitDiffuse(SKPoint3, SKColor, Single, Single)

建立一個影像濾鏡,利用凹凸貼圖套用點光漫射光。

public static SkiaSharp.SKImageFilter CreatePointLitDiffuse(SkiaSharp.SKPoint3 location, SkiaSharp.SKColor lightColor, float surfaceScale, float kd);

參數

location
SKPoint3

燈的位置。

lightColor
SKColor

光的顏色。

surfaceScale
Single

凹凸貼圖的表面高度尺度因子。

kd
Single

漫射光線常數。

傳回

退貨時是新的 SKImageFilter,否則 null 是錯誤的。

適用於

CreatePointLitDiffuse(SKPoint3, SKColor, Single, Single, SKImageFilter)

建立一個影像濾鏡,利用凹凸貼圖套用點光漫射光。

public static SkiaSharp.SKImageFilter CreatePointLitDiffuse(SkiaSharp.SKPoint3 location, SkiaSharp.SKColor lightColor, float surfaceScale, float kd, SkiaSharp.SKImageFilter? input);

參數

location
SKPoint3

燈的位置。

lightColor
SKColor

光的顏色。

surfaceScale
Single

凹凸貼圖的表面高度尺度因子。

kd
Single

漫射光線常數。

input
SKImageFilter

輸入濾波器要用,還是 null 用來源位圖。

傳回

退貨時是新的 SKImageFilter,否則 null 是錯誤的。

適用於

CreatePointLitDiffuse(SKPoint3, SKColor, Single, Single, SKImageFilter, SKRect)

建立一個影像濾鏡,利用凹凸貼圖套用點光漫射光。

public static SkiaSharp.SKImageFilter CreatePointLitDiffuse(SkiaSharp.SKPoint3 location, SkiaSharp.SKColor lightColor, float surfaceScale, float kd, SkiaSharp.SKImageFilter? input, SkiaSharp.SKRect cropRect);

參數

location
SKPoint3

燈的位置。

lightColor
SKColor

光的顏色。

surfaceScale
Single

凹凸貼圖的表面高度尺度因子。

kd
Single

漫射光線常數。

input
SKImageFilter

輸入濾波器要用,還是 null 用來源位圖。

cropRect
SKRect

輸出處理將被限制在矩形範圍內。

傳回

退貨時是新的 SKImageFilter,否則 null 是錯誤的。

適用於