SKImageFilter.CreateSpotLitDiffuse 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| CreateSpotLitDiffuse(SKPoint3, SKPoint3, Single, Single, SKColor, Single, Single) |
建立一個影像濾鏡,透過凹凸貼圖來套用聚光燈漫射光。 |
| CreateSpotLitDiffuse(SKPoint3, SKPoint3, Single, Single, SKColor, Single, Single, SKImageFilter) |
建立一個影像濾鏡,透過凹凸貼圖來套用聚光燈漫射光。 |
| CreateSpotLitDiffuse(SKPoint3, SKPoint3, Single, Single, SKColor, Single, Single, SKImageFilter, SKRect) |
建立一個影像濾鏡,透過凹凸貼圖來套用聚光燈漫射光。 |
CreateSpotLitDiffuse(SKPoint3, SKPoint3, Single, Single, SKColor, Single, Single)
建立一個影像濾鏡,透過凹凸貼圖來套用聚光燈漫射光。
public static SkiaSharp.SKImageFilter CreateSpotLitDiffuse(SkiaSharp.SKPoint3 location, SkiaSharp.SKPoint3 target, float specularExponent, float cutoffAngle, SkiaSharp.SKColor lightColor, float surfaceScale, float kd);
參數
- location
- SKPoint3
燈的位置。
- target
- SKPoint3
聚光燈下的目標點。
- specularExponent
- Single
聚光燈的衰落指數。
- cutoffAngle
- Single
聚光燈截光角度以度數為單位。
- lightColor
- SKColor
光的顏色。
- surfaceScale
- Single
凹凸貼圖的表面高度尺度因子。
- kd
- Single
漫射光線常數。
傳回
退貨時是新的 SKImageFilter,否則 null 是錯誤的。
適用於
CreateSpotLitDiffuse(SKPoint3, SKPoint3, Single, Single, SKColor, Single, Single, SKImageFilter)
建立一個影像濾鏡,透過凹凸貼圖來套用聚光燈漫射光。
public static SkiaSharp.SKImageFilter CreateSpotLitDiffuse(SkiaSharp.SKPoint3 location, SkiaSharp.SKPoint3 target, float specularExponent, float cutoffAngle, SkiaSharp.SKColor lightColor, float surfaceScale, float kd, SkiaSharp.SKImageFilter? input);
參數
- location
- SKPoint3
燈的位置。
- target
- SKPoint3
聚光燈下的目標點。
- specularExponent
- Single
聚光燈的衰落指數。
- cutoffAngle
- Single
聚光燈截光角度以度數為單位。
- lightColor
- SKColor
光的顏色。
- surfaceScale
- Single
凹凸貼圖的表面高度尺度因子。
- kd
- Single
漫射光線常數。
- input
- SKImageFilter
輸入濾波器要用,還是 null 用來源位圖。
傳回
退貨時是新的 SKImageFilter,否則 null 是錯誤的。
適用於
CreateSpotLitDiffuse(SKPoint3, SKPoint3, Single, Single, SKColor, Single, Single, SKImageFilter, SKRect)
建立一個影像濾鏡,透過凹凸貼圖來套用聚光燈漫射光。
public static SkiaSharp.SKImageFilter CreateSpotLitDiffuse(SkiaSharp.SKPoint3 location, SkiaSharp.SKPoint3 target, float specularExponent, float cutoffAngle, SkiaSharp.SKColor lightColor, float surfaceScale, float kd, SkiaSharp.SKImageFilter? input, SkiaSharp.SKRect cropRect);
參數
- location
- SKPoint3
燈的位置。
- target
- SKPoint3
聚光燈下的目標點。
- specularExponent
- Single
聚光燈的衰落指數。
- cutoffAngle
- Single
聚光燈截光角度以度數為單位。
- lightColor
- SKColor
光的顏色。
- surfaceScale
- Single
凹凸貼圖的表面高度尺度因子。
- kd
- Single
漫射光線常數。
- input
- SKImageFilter
輸入濾波器要用,還是 null 用來源位圖。
- cropRect
- SKRect
輸出處理將被限制在矩形範圍內。
傳回
退貨時是新的 SKImageFilter,否則 null 是錯誤的。