SKImageFilter.CreateDistantLitDiffuse 方法

定義

多載

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

建立一個影像濾鏡,利用凹凸貼圖來施加遠處光線漫射光。

CreateDistantLitDiffuse(SKPoint3, SKColor, Single, Single, SKImageFilter)

建立一個影像濾鏡,利用凹凸貼圖來施加遠處光線漫射光。

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

建立一個影像濾鏡,利用凹凸貼圖來施加遠處光線漫射光。

CreateDistantLitDiffuse(SKPoint3, SKColor, Single, Single)

建立一個影像濾鏡,利用凹凸貼圖來施加遠處光線漫射光。

public static SkiaSharp.SKImageFilter CreateDistantLitDiffuse(SkiaSharp.SKPoint3 direction, SkiaSharp.SKColor lightColor, float surfaceScale, float kd);

參數

direction
SKPoint3

光的方向。

lightColor
SKColor

光的顏色。

surfaceScale
Single

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

kd
Single

漫射光線常數。

傳回

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

適用於

CreateDistantLitDiffuse(SKPoint3, SKColor, Single, Single, SKImageFilter)

建立一個影像濾鏡,利用凹凸貼圖來施加遠處光線漫射光。

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

參數

direction
SKPoint3

光的方向。

lightColor
SKColor

光的顏色。

surfaceScale
Single

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

kd
Single

漫射光線常數。

input
SKImageFilter

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

傳回

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

適用於

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

建立一個影像濾鏡,利用凹凸貼圖來施加遠處光線漫射光。

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

參數

direction
SKPoint3

光的方向。

lightColor
SKColor

光的顏色。

surfaceScale
Single

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

kd
Single

漫射光線常數。

input
SKImageFilter

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

cropRect
SKRect

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

傳回

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

適用於