簡單形狀影像
23 個節點
本頁內容 23
繪製圓形
函數Draws a circle with the specified radius.
繪製圓形 -> Pixel Image
半徑: 整數
填充顏色: 可選顏色
描邊顏色: 可選顏色
描邊寬度: 低精度數字
背景顏色: 可選顏色
內邊距: 低精度數字
抗鋸齒: 真否PixelImage DrawCircleShape(
int radius,
ColorElement? fillColor,
ColorElement? strokeColor,
float strokeWidth = 0f,
ColorElement? backgroundColor,
float padding = 0f,
bool antialias = true)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 半徑 | 整數 | — | The radius of the circle. |
| 填充顏色 | 可選顏色 | — | |
| 描邊顏色 | 可選顏色 | — | |
| 描邊寬度 | 低精度數字 | 0 | |
| 背景顏色 | 可選顏色 | — | |
| 內邊距 | 低精度數字 | 0 | |
| 抗鋸齒 | 真否 | True |
返回
| 結果 | Pixel Image |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 簡單形狀影像
- 所屬包
- 影像處理
繪製圓錐幾何體
函數此節點沒有文件說明。
繪製圓錐幾何體 -> Pixel Image
寬度: 數字
高度: 數字
深度: 數字
描邊顏色: 可選顏色
描邊寬度: 低精度數字
背景顏色: 可選顏色
內邊距: 低精度數字
填充顏色: 可選顏色
抗鋸齒: 真否PixelImage DrawConeGeometry(
double width = 512,
double height = 640,
double depth = 220,
ColorElement? strokeColor,
float strokeWidth = 3f,
ColorElement? backgroundColor,
float padding = 32f,
ColorElement? fillColor,
bool antialias = true)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 寬度 | 數字 | 512 | |
| 高度 | 數字 | 640 | |
| 深度 | 數字 | 220 | |
| 描邊顏色 | 可選顏色 | — | |
| 描邊寬度 | 低精度數字 | 3 | |
| 背景顏色 | 可選顏色 | — | |
| 內邊距 | 低精度數字 | 32 | |
| 填充顏色 | 可選顏色 | — | |
| 抗鋸齒 | 真否 | True |
返回
| 結果 | Pixel Image |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 簡單形狀影像
- 所屬包
- 影像處理
繪製立方體幾何體
函數此節點沒有文件說明。
繪製立方體幾何體 -> Pixel Image
大小: 數字
描邊顏色: 可選顏色
描邊寬度: 低精度數字
背景顏色: 可選顏色
內邊距: 低精度數字
填充面: 真否
面填充顏色: 可選顏色
抗鋸齒: 真否PixelImage DrawCubeGeometry(
double size = 512,
ColorElement? strokeColor,
float strokeWidth = 3f,
ColorElement? backgroundColor,
float padding = 32f,
bool fillFaces = false,
ColorElement? faceFillColor,
bool antialias = true)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 大小 | 數字 | 512 | |
| 描邊顏色 | 可選顏色 | — | |
| 描邊寬度 | 低精度數字 | 3 | |
| 背景顏色 | 可選顏色 | — | |
| 內邊距 | 低精度數字 | 32 | |
| 填充面 | 真否 | False | |
| 面填充顏色 | 可選顏色 | — | |
| 抗鋸齒 | 真否 | True |
返回
| 結果 | Pixel Image |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 簡單形狀影像
- 所屬包
- 影像處理
繪製長方體幾何體
函數此節點沒有文件說明。
繪製長方體幾何體 -> Pixel Image
寬度: 數字
高度: 數字
深度: 數字
描邊顏色: 可選顏色
描邊寬度: 低精度數字
背景顏色: 可選顏色
內邊距: 低精度數字
填充面: 真否
面填充顏色: 可選顏色
抗鋸齒: 真否PixelImage DrawCuboidGeometry(
double width = 640,
double height = 420,
double depth = 260,
ColorElement? strokeColor,
float strokeWidth = 3f,
ColorElement? backgroundColor,
float padding = 32f,
bool fillFaces = false,
ColorElement? faceFillColor,
bool antialias = true)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 寬度 | 數字 | 640 | |
| 高度 | 數字 | 420 | |
| 深度 | 數字 | 260 | |
| 描邊顏色 | 可選顏色 | — | |
| 描邊寬度 | 低精度數字 | 3 | |
| 背景顏色 | 可選顏色 | — | |
| 內邊距 | 低精度數字 | 32 | |
| 填充面 | 真否 | False | |
| 面填充顏色 | 可選顏色 | — | |
| 抗鋸齒 | 真否 | True |
返回
| 結果 | Pixel Image |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 簡單形狀影像
- 所屬包
- 影像處理
繪製曲線
函數Draws (closed) curves/polygons.
繪製曲線 -> Pixel Image
形狀: GeometryDrawShapesCollection
輪廓: 顏色
填充: 顏色
背景: 顏色
繪製填充: 真否
輪廓粗細: 整數
寬度: 整數
高度: 整數PixelImage DrawCurves(
GeometryDrawShapesCollection shapes,
ColorElement outline,
ColorElement fill,
ColorElement background,
bool drawFill,
int outlineThickness = 3,
int width = 512,
int height = 512)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 形狀 | GeometryDrawShapesCollection | — | |
| 輪廓 | 顏色 | — | |
| 填充 | 顏色 | — | |
| 背景 | 顏色 | — | |
| 繪製填充 | 真否 | — | |
| 輪廓粗細 | 整數 | 3 | |
| 寬度 | 整數 | 512 | How many pixels wide the picture is; the frame the shapes were drawn in covers the whole of it. |
| 高度 | 整數 | 512 | How many pixels tall the picture is. |
返回
| 結果 | Pixel Image |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 簡單形狀影像
- 所屬包
- 影像處理
繪製圓柱幾何體
函數此節點沒有文件說明。
繪製圓柱幾何體 -> Pixel Image
寬度: 數字
高度: 數字
深度: 數字
描邊顏色: 可選顏色
描邊寬度: 低精度數字
背景顏色: 可選顏色
內邊距: 低精度數字
填充顏色: 可選顏色
抗鋸齒: 真否PixelImage DrawCylinderGeometry(
double width = 512,
double height = 640,
double depth = 220,
ColorElement? strokeColor,
float strokeWidth = 3f,
ColorElement? backgroundColor,
float padding = 32f,
ColorElement? fillColor,
bool antialias = true)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 寬度 | 數字 | 512 | |
| 高度 | 數字 | 640 | |
| 深度 | 數字 | 220 | |
| 描邊顏色 | 可選顏色 | — | |
| 描邊寬度 | 低精度數字 | 3 | |
| 背景顏色 | 可選顏色 | — | |
| 內邊距 | 低精度數字 | 32 | |
| 填充顏色 | 可選顏色 | — | |
| 抗鋸齒 | 真否 | True |
返回
| 結果 | Pixel Image |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 簡單形狀影像
- 所屬包
- 影像處理
繪製距離場
函數Draws shapes filled as distance fields.
繪製距離場 -> Pixel Image
形狀: GeometryDrawShapesCollection
正向: 顏色
負向: 顏色
方向: DistanceFieldDirection
衰減: DistanceFieldFalloffType
衰減距離: 整數
寬度: 整數
高度: 整數PixelImage DrawDistanceFields(
GeometryDrawShapesCollection shapes,
ColorElement positive,
ColorElement negative,
DistanceFieldDirection direction,
DistanceFieldFalloffType falloff,
int falloffDistance = 15,
int width = 512,
int height = 512)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 形狀 | GeometryDrawShapesCollection | — | |
| 正向 | 顏色 | — | |
| 負向 | 顏色 | — | |
| 方向 | DistanceFieldDirection | — | |
| 衰減 | DistanceFieldFalloffType | — | |
| 衰減距離 | 整數 | 15 | How far the field falls off, in the picture's pixels. |
| 寬度 | 整數 | 512 | How many pixels wide the picture is; the frame the shapes were drawn in covers the whole of it. |
| 高度 | 整數 | 512 | How many pixels tall the picture is. |
返回
| 結果 | Pixel Image |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 簡單形狀影像
- 所屬包
- 影像處理
繪製橢圓
函數Draws an ellipse within the specified width and height.
繪製橢圓 -> Pixel Image
寬度: 整數
高度: 整數
填充顏色: 可選顏色
描邊顏色: 可選顏色
描邊寬度: 低精度數字
背景顏色: 可選顏色
內邊距: 低精度數字
旋轉角度(度): 低精度數字
抗鋸齒: 真否PixelImage DrawEllipseShape(
int width,
int height,
ColorElement? fillColor,
ColorElement? strokeColor,
float strokeWidth = 0f,
ColorElement? backgroundColor,
float padding = 0f,
float rotationDegrees = 0f,
bool antialias = true)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 寬度 | 整數 | — | |
| 高度 | 整數 | — | |
| 填充顏色 | 可選顏色 | — | |
| 描邊顏色 | 可選顏色 | — | |
| 描邊寬度 | 低精度數字 | 0 | |
| 背景顏色 | 可選顏色 | — | |
| 內邊距 | 低精度數字 | 0 | |
| 旋轉角度(度) | 低精度數字 | 0 | |
| 抗鋸齒 | 真否 | True |
返回
| 結果 | Pixel Image |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 簡單形狀影像
- 所屬包
- 影像處理
繪製等邊三角形
函數Draws an equilateral triangle within the specified dimensions and optionally labels edges and angles.
繪製等邊三角形 -> Pixel Image
寬度: 整數
高度: 整數
向左或向右: 真否
顯示邊名稱: 真否
顯示角標記: 真否
頂點名稱: 文字
填充顏色: 可選顏色
描邊顏色: 可選顏色
描邊寬度: 低精度數字
背景顏色: 可選顏色
內邊距: 低精度數字
旋轉角度(度): 低精度數字
標籤字型大小: 整數
標籤顏色: 可選顏色
抗鋸齒: 真否PixelImage DrawEquilateralTriangleShape(
int width,
int height,
bool leftOrRight = true,
bool showEdgeNames = false,
bool showAngleSymbols = false,
string vertexNames = "ABC",
ColorElement? fillColor,
ColorElement? strokeColor,
float strokeWidth = 0f,
ColorElement? backgroundColor,
float padding = 0f,
float rotationDegrees = 0f,
int labelFontSize = 14,
ColorElement? labelColor,
bool antialias = true)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 寬度 | 整數 | — | The width of the drawing area. |
| 高度 | 整數 | — | The height of the drawing area. |
| 向左或向右 | 真否 | True | If true, the triangle is left-aligned; if false, it is right-aligned. |
| 顯示邊名稱 | 真否 | False | If set to true, labels the vertices with letters. |
| 顯示角標記 | 真否 | False | If set to true, labels the angles with their measures. |
| 頂點名稱 | 文字 | ABC | |
| 填充顏色 | 可選顏色 | — | |
| 描邊顏色 | 可選顏色 | — | |
| 描邊寬度 | 低精度數字 | 0 | |
| 背景顏色 | 可選顏色 | — | |
| 內邊距 | 低精度數字 | 0 | |
| 旋轉角度(度) | 低精度數字 | 0 | |
| 標籤字型大小 | 整數 | 14 | |
| 標籤顏色 | 可選顏色 | — | |
| 抗鋸齒 | 真否 | True |
返回
| 結果 | Pixel Image |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 簡單形狀影像
- 所屬包
- 影像處理
繪製六邊形
函數過載 1/2
繪製六邊形 -> Pixel Image
半徑: 數字
填充顏色: 可選顏色
描邊顏色: 可選顏色
描邊寬度: 低精度數字
背景顏色: 可選顏色
內邊距: 低精度數字
起始角度(度): 低精度數字
旋轉角度(度): 低精度數字
抗鋸齒: 真否PixelImage DrawHexagonShape(
double radius,
ColorElement? fillColor,
ColorElement? strokeColor,
float strokeWidth = 0f,
ColorElement? backgroundColor,
float padding = 0f,
float startAngleDegrees = -90f,
float rotationDegrees = 0f,
bool antialias = true)Draws a regular hexagon inscribed in a circle with the specified radius.
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 半徑 | 數字 | — | The radius of the circumscribed circle. |
| 填充顏色 | 可選顏色 | — | |
| 描邊顏色 | 可選顏色 | — | |
| 描邊寬度 | 低精度數字 | 0 | |
| 背景顏色 | 可選顏色 | — | |
| 內邊距 | 低精度數字 | 0 | |
| 起始角度(度) | 低精度數字 | -90 | |
| 旋轉角度(度) | 低精度數字 | 0 | |
| 抗鋸齒 | 真否 | True |
返回
| 結果 | Pixel Image |
過載 2/2
繪製六邊形 -> Pixel Image
寬度: 整數
高度: 整數
填充顏色: 可選顏色
描邊顏色: 可選顏色
描邊寬度: 低精度數字
背景顏色: 可選顏色
內邊距: 低精度數字
起始角度(度): 低精度數字
旋轉角度(度): 低精度數字
抗鋸齒: 真否PixelImage DrawHexagonShape(
int width,
int height,
ColorElement? fillColor,
ColorElement? strokeColor,
float strokeWidth = 0f,
ColorElement? backgroundColor,
float padding = 0f,
float startAngleDegrees = -90f,
float rotationDegrees = 0f,
bool antialias = true)Draws a regular hexagon that fits within the specified width and height.
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 寬度 | 整數 | — | The width of the drawing area. |
| 高度 | 整數 | — | The height of the drawing area. |
| 填充顏色 | 可選顏色 | — | |
| 描邊顏色 | 可選顏色 | — | |
| 描邊寬度 | 低精度數字 | 0 | |
| 背景顏色 | 可選顏色 | — | |
| 內邊距 | 低精度數字 | 0 | |
| 起始角度(度) | 低精度數字 | -90 | |
| 旋轉角度(度) | 低精度數字 | 0 | |
| 抗鋸齒 | 真否 | True |
返回
| 結果 | Pixel Image |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 簡單形狀影像
- 所屬包
- 影像處理
繪製線段
函數Draws a line segment.
繪製線段 -> Pixel Image
寬度: 整數
高度: 整數
X1: 低精度數字
Y1: 低精度數字
X2: 低精度數字
Y2: 低精度數字
描邊顏色: 可選顏色
描邊寬度: 低精度數字
背景顏色: 可選顏色
抗鋸齒: 真否
線帽: SKStrokeCapPixelImage DrawLineShape(
int width,
int height,
float x1,
float y1,
float x2,
float y2,
ColorElement? strokeColor,
float strokeWidth = 2f,
ColorElement? backgroundColor,
bool antialias = true,
SKStrokeCap strokeCap = SKStrokeCap.Round)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 寬度 | 整數 | — | |
| 高度 | 整數 | — | |
| X1 | 低精度數字 | — | |
| Y1 | 低精度數字 | — | |
| X2 | 低精度數字 | — | |
| Y2 | 低精度數字 | — | |
| 描邊顏色 | 可選顏色 | — | |
| 描邊寬度 | 低精度數字 | 2 | |
| 背景顏色 | 可選顏色 | — | |
| 抗鋸齒 | 真否 | True | |
| 線帽 | SKStrokeCap | Round |
返回
| 結果 | Pixel Image |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 簡單形狀影像
- 所屬包
- 影像處理
繪製卵形
函數Draws an oval with the specified major and minor radii.
繪製卵形 -> Pixel Image
主半徑: 整數
次半徑: 整數
填充顏色: 可選顏色
描邊顏色: 可選顏色
描邊寬度: 低精度數字
背景顏色: 可選顏色
內邊距: 低精度數字
旋轉角度(度): 低精度數字
抗鋸齒: 真否PixelImage DrawOvalShape(
int majorRadius,
int minorRadius,
ColorElement? fillColor,
ColorElement? strokeColor,
float strokeWidth = 0f,
ColorElement? backgroundColor,
float padding = 0f,
float rotationDegrees = 0f,
bool antialias = true)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 主半徑 | 整數 | — | The major radius (half of the width) of the oval. |
| 次半徑 | 整數 | — | The minor radius (half of the height) of the oval. |
| 填充顏色 | 可選顏色 | — | |
| 描邊顏色 | 可選顏色 | — | |
| 描邊寬度 | 低精度數字 | 0 | |
| 背景顏色 | 可選顏色 | — | |
| 內邊距 | 低精度數字 | 0 | |
| 旋轉角度(度) | 低精度數字 | 0 | |
| 抗鋸齒 | 真否 | True |
返回
| 結果 | Pixel Image |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 簡單形狀影像
- 所屬包
- 影像處理
繪製五邊形
函數過載 1/2
繪製五邊形 -> Pixel Image
半徑: 數字
填充顏色: 可選顏色
描邊顏色: 可選顏色
描邊寬度: 低精度數字
背景顏色: 可選顏色
內邊距: 低精度數字
起始角度(度): 低精度數字
旋轉角度(度): 低精度數字
抗鋸齒: 真否PixelImage DrawPentagonShape(
double radius,
ColorElement? fillColor,
ColorElement? strokeColor,
float strokeWidth = 0f,
ColorElement? backgroundColor,
float padding = 0f,
float startAngleDegrees = -90f,
float rotationDegrees = 0f,
bool antialias = true)Draws a regular pentagon inscribed in a circle with the specified radius.
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 半徑 | 數字 | — | The radius of the circumscribed circle. |
| 填充顏色 | 可選顏色 | — | |
| 描邊顏色 | 可選顏色 | — | |
| 描邊寬度 | 低精度數字 | 0 | |
| 背景顏色 | 可選顏色 | — | |
| 內邊距 | 低精度數字 | 0 | |
| 起始角度(度) | 低精度數字 | -90 | |
| 旋轉角度(度) | 低精度數字 | 0 | |
| 抗鋸齒 | 真否 | True |
返回
| 結果 | Pixel Image |
過載 2/2
繪製五邊形 -> Pixel Image
寬度: 整數
高度: 整數
填充顏色: 可選顏色
描邊顏色: 可選顏色
描邊寬度: 低精度數字
背景顏色: 可選顏色
內邊距: 低精度數字
起始角度(度): 低精度數字
旋轉角度(度): 低精度數字
抗鋸齒: 真否PixelImage DrawPentagonShape(
int width,
int height,
ColorElement? fillColor,
ColorElement? strokeColor,
float strokeWidth = 0f,
ColorElement? backgroundColor,
float padding = 0f,
float startAngleDegrees = -90f,
float rotationDegrees = 0f,
bool antialias = true)Draws a regular pentagon that fits within the specified width and height.
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 寬度 | 整數 | — | The width of the drawing area. |
| 高度 | 整數 | — | The height of the drawing area. |
| 填充顏色 | 可選顏色 | — | |
| 描邊顏色 | 可選顏色 | — | |
| 描邊寬度 | 低精度數字 | 0 | |
| 背景顏色 | 可選顏色 | — | |
| 內邊距 | 低精度數字 | 0 | |
| 起始角度(度) | 低精度數字 | -90 | |
| 旋轉角度(度) | 低精度數字 | 0 | |
| 抗鋸齒 | 真否 | True |
返回
| 結果 | Pixel Image |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 簡單形狀影像
- 所屬包
- 影像處理
繪製多邊形
函數Draws a regular polygon with the specified number of sides inscribed within the given width and height.
繪製多邊形 -> Pixel Image
寬度: 整數
高度: 整數
邊數: 整數
填充顏色: 可選顏色
描邊顏色: 可選顏色
描邊寬度: 低精度數字
背景顏色: 可選顏色
內邊距: 低精度數字
起始角度(度): 低精度數字
旋轉角度(度): 低精度數字
適應方式: Polygon Fit Mode
抗鋸齒: 真否PixelImage DrawPolygonShape(
int width,
int height,
int sides,
ColorElement? fillColor,
ColorElement? strokeColor,
float strokeWidth = 0f,
ColorElement? backgroundColor,
float padding = 0f,
float startAngleDegrees = -90f,
float rotationDegrees = 0f,
SimpleShapeImages.PolygonFitMode fitMode = PolygonFitMode.FitWidthAndHeight,
bool antialias = true)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 寬度 | 整數 | — | The width of the drawing area. |
| 高度 | 整數 | — | The height of the drawing area. |
| 邊數 | 整數 | — | The number of sides of the polygon (minimum 3). |
| 填充顏色 | 可選顏色 | — | |
| 描邊顏色 | 可選顏色 | — | |
| 描邊寬度 | 低精度數字 | 0 | |
| 背景顏色 | 可選顏色 | — | |
| 內邊距 | 低精度數字 | 0 | |
| 起始角度(度) | 低精度數字 | -90 | |
| 旋轉角度(度) | 低精度數字 | 0 | |
| 適應方式 | Polygon Fit Mode | 適應寬高 | |
| 抗鋸齒 | 真否 | True |
返回
| 結果 | Pixel Image |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 簡單形狀影像
- 所屬包
- 影像處理
繪製稜錐幾何體
函數此節點沒有文件說明。
繪製稜錐幾何體 -> Pixel Image
寬度: 數字
高度: 數字
深度: 數字
描邊顏色: 可選顏色
描邊寬度: 低精度數字
背景顏色: 可選顏色
內邊距: 低精度數字
填充面: 真否
面填充顏色: 可選顏色
抗鋸齒: 真否PixelImage DrawPyramidGeometry(
double width = 640,
double height = 500,
double depth = 320,
ColorElement? strokeColor,
float strokeWidth = 3f,
ColorElement? backgroundColor,
float padding = 32f,
bool fillFaces = false,
ColorElement? faceFillColor,
bool antialias = true)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 寬度 | 數字 | 640 | |
| 高度 | 數字 | 500 | |
| 深度 | 數字 | 320 | |
| 描邊顏色 | 可選顏色 | — | |
| 描邊寬度 | 低精度數字 | 3 | |
| 背景顏色 | 可選顏色 | — | |
| 內邊距 | 低精度數字 | 32 | |
| 填充面 | 真否 | False | |
| 面填充顏色 | 可選顏色 | — | |
| 抗鋸齒 | 真否 | True |
返回
| 結果 | Pixel Image |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 簡單形狀影像
- 所屬包
- 影像處理
繪製四邊形
函數Draws a quadrilateral with the specified width, height, and slanted angle.
繪製四邊形 -> Pixel Image
寬度: 整數
高度: 整數
角度(度): 數字
填充顏色: 可選顏色
描邊顏色: 可選顏色
描邊寬度: 低精度數字
背景顏色: 可選顏色
內邊距: 低精度數字
旋轉角度(度): 低精度數字
抗鋸齒: 真否PixelImage DrawQuadrilateralShape(
int width,
int height,
double angleInDegrees = 12,
ColorElement? fillColor,
ColorElement? strokeColor,
float strokeWidth = 0f,
ColorElement? backgroundColor,
float padding = 0f,
float rotationDegrees = 0f,
bool antialias = true)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 寬度 | 整數 | — | The width of the drawing area. |
| 高度 | 整數 | — | The height of the drawing area. |
| 角度(度) | 數字 | 12 | The angle in degrees to slant one side. |
| 填充顏色 | 可選顏色 | — | |
| 描邊顏色 | 可選顏色 | — | |
| 描邊寬度 | 低精度數字 | 0 | |
| 背景顏色 | 可選顏色 | — | |
| 內邊距 | 低精度數字 | 0 | |
| 旋轉角度(度) | 低精度數字 | 0 | |
| 抗鋸齒 | 真否 | True |
返回
| 結果 | Pixel Image |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 簡單形狀影像
- 所屬包
- 影像處理
繪製矩形
函數Draws a rectangle with the specified width and height.
繪製矩形 -> Pixel Image
寬度: 整數
高度: 整數
填充顏色: 可選顏色
描邊顏色: 可選顏色
描邊寬度: 低精度數字
背景顏色: 可選顏色
內邊距: 低精度數字
圓角半徑: 低精度數字
旋轉角度(度): 低精度數字
抗鋸齒: 真否PixelImage DrawRectangleShape(
int width,
int height,
ColorElement? fillColor,
ColorElement? strokeColor,
float strokeWidth = 0f,
ColorElement? backgroundColor,
float padding = 0f,
float cornerRadius = 0f,
float rotationDegrees = 0f,
bool antialias = true)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 寬度 | 整數 | — | The width of the rectangle. |
| 高度 | 整數 | — | The height of the rectangle. |
| 填充顏色 | 可選顏色 | — | |
| 描邊顏色 | 可選顏色 | — | |
| 描邊寬度 | 低精度數字 | 0 | |
| 背景顏色 | 可選顏色 | — | |
| 內邊距 | 低精度數字 | 0 | |
| 圓角半徑 | 低精度數字 | 0 | |
| 旋轉角度(度) | 低精度數字 | 0 | |
| 抗鋸齒 | 真否 | True |
返回
| 結果 | Pixel Image |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 簡單形狀影像
- 所屬包
- 影像處理
繪製直角三角形
函數Draws a right triangle with the specified dimensions and optional edge and angle labels.
過載 1/2
繪製直角三角形 -> Pixel Image
寬度: 整數
高度: 整數
直角位置: Right Triangle Corner
顯示邊名稱: 真否
顯示角標記: 真否
頂點名稱: 文字
填充顏色: 可選顏色
描邊顏色: 可選顏色
描邊寬度: 低精度數字
背景顏色: 可選顏色
內邊距: 低精度數字
旋轉角度(度): 低精度數字
標籤字型大小: 整數
標籤顏色: 可選顏色
抗鋸齒: 真否PixelImage DrawRightTriangleShape(
int width,
int height,
SimpleShapeImages.RightTriangleCorner rightAngleCorner = RightTriangleCorner.BottomLeft,
bool showEdgeNames = false,
bool showAngleSymbols = false,
string vertexNames = "ABC",
ColorElement? fillColor,
ColorElement? strokeColor,
float strokeWidth = 0f,
ColorElement? backgroundColor,
float padding = 0f,
float rotationDegrees = 0f,
int labelFontSize = 14,
ColorElement? labelColor,
bool antialias = true)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 寬度 | 整數 | — | The width of the drawing area. |
| 高度 | 整數 | — | The height of the drawing area. |
| 直角位置 | Right Triangle Corner | 左下 | The corner where the right angle is placed. |
| 顯示邊名稱 | 真否 | False | If set to true, labels the vertices with letters. |
| 顯示角標記 | 真否 | False | If set to true, labels the right angle with its measure. |
| 頂點名稱 | 文字 | ABC | |
| 填充顏色 | 可選顏色 | — | |
| 描邊顏色 | 可選顏色 | — | |
| 描邊寬度 | 低精度數字 | 0 | |
| 背景顏色 | 可選顏色 | — | |
| 內邊距 | 低精度數字 | 0 | |
| 旋轉角度(度) | 低精度數字 | 0 | |
| 標籤字型大小 | 整數 | 14 | |
| 標籤顏色 | 可選顏色 | — | |
| 抗鋸齒 | 真否 | True |
返回
| 結果 | Pixel Image |
過載 2/2
繪製直角三角形 -> Pixel Image
寬度: 整數
高度: 整數
向左或向右: 真否
顯示邊名稱: 真否
顯示角標記: 真否PixelImage DrawRightTriangleShape(
int width,
int height,
bool leftOrRight,
bool showEdgeNames,
bool showAngleSymbols)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 寬度 | 整數 | — | The width of the drawing area. |
| 高度 | 整數 | — | The height of the drawing area. |
| 向左或向右 | 真否 | — | If true, the right angle is at the left side; if false, it is at the right side. |
| 顯示邊名稱 | 真否 | — | If set to true, labels the vertices with letters. |
| 顯示角標記 | 真否 | — | If set to true, labels the right angle with its measure. |
返回
| 結果 | Pixel Image |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 簡單形狀影像
- 所屬包
- 影像處理
繪製球體幾何體
函數Draw a lit 3D sphere.
繪製球體幾何體 -> Pixel Image
寬度: 數字
高度: 數字
半徑: 數字PixelImage DrawSphereGeometry(
double width = 1024,
double height = 1024,
double radius = 1)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 寬度 | 數字 | 1024 | Width of image |
| 高度 | 數字 | 1024 | Height of image |
| 半徑 | 數字 | 1 | Radius of sphere in 3D space. |
返回
| 結果 | Pixel Image |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 簡單形狀影像
- 所屬包
- 影像處理
繪製正方形
函數Draws a square with the specified size.
繪製正方形 -> Pixel Image
大小: 整數
填充顏色: 可選顏色
描邊顏色: 可選顏色
描邊寬度: 低精度數字
背景顏色: 可選顏色
內邊距: 低精度數字
圓角半徑: 低精度數字
旋轉角度(度): 低精度數字
抗鋸齒: 真否PixelImage DrawSquareShape(
int size,
ColorElement? fillColor,
ColorElement? strokeColor,
float strokeWidth = 0f,
ColorElement? backgroundColor,
float padding = 0f,
float cornerRadius = 0f,
float rotationDegrees = 0f,
bool antialias = true)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 大小 | 整數 | — | The length of each side of the square. |
| 填充顏色 | 可選顏色 | — | |
| 描邊顏色 | 可選顏色 | — | |
| 描邊寬度 | 低精度數字 | 0 | |
| 背景顏色 | 可選顏色 | — | |
| 內邊距 | 低精度數字 | 0 | |
| 圓角半徑 | 低精度數字 | 0 | |
| 旋轉角度(度) | 低精度數字 | 0 | |
| 抗鋸齒 | 真否 | True |
返回
| 結果 | Pixel Image |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 簡單形狀影像
- 所屬包
- 影像處理
繪製星形
函數Draws a star polygon.
繪製星形 -> Pixel Image
寬度: 整數
高度: 整數
點: 整數
內半徑比例: 低精度數字
填充顏色: 可選顏色
描邊顏色: 可選顏色
描邊寬度: 低精度數字
背景顏色: 可選顏色
內邊距: 低精度數字
起始角度(度): 低精度數字
旋轉角度(度): 低精度數字
抗鋸齒: 真否PixelImage DrawStarShape(
int width,
int height,
int points = 5,
float innerRadiusRatio = 0.45f,
ColorElement? fillColor,
ColorElement? strokeColor,
float strokeWidth = 0f,
ColorElement? backgroundColor,
float padding = 0f,
float startAngleDegrees = -90f,
float rotationDegrees = 0f,
bool antialias = true)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 寬度 | 整數 | — | |
| 高度 | 整數 | — | |
| 點 | 整數 | 5 | |
| 內半徑比例 | 低精度數字 | 0.45 | |
| 填充顏色 | 可選顏色 | — | |
| 描邊顏色 | 可選顏色 | — | |
| 描邊寬度 | 低精度數字 | 0 | |
| 背景顏色 | 可選顏色 | — | |
| 內邊距 | 低精度數字 | 0 | |
| 起始角度(度) | 低精度數字 | -90 | |
| 旋轉角度(度) | 低精度數字 | 0 | |
| 抗鋸齒 | 真否 | True |
返回
| 結果 | Pixel Image |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 簡單形狀影像
- 所屬包
- 影像處理
繪製文字
函數Handles both single line and multi line
繪製文字 -> Pixel Image
文字: 文字
內邊距: 整數
字型大小: 整數
字型族: 文字
顏色: 可選顏色
文字對齊: SKTextAlign
背景: 可選顏色
行距: 低精度數字
半粗體: 真否
斜體: 真否
抗鋸齒: 真否PixelImage DrawText(
string text,
int padding = 10,
int fontSize = 46,
string fontFamily = "Verdana",
ColorElement? color,
SKTextAlign textAlign = SKTextAlign.Center,
ColorElement? background,
float lineSpacing = 1.15f,
bool semibold = true,
bool italic = true,
bool antialias = true)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 文字 | 文字 | — | |
| 內邊距 | 整數 | 10 | |
| 字型大小 | 整數 | 46 | |
| 字型族 | 文字 | Verdana | |
| 顏色 | 可選顏色 | — | |
| 文字對齊 | SKTextAlign | Center | |
| 背景 | 可選顏色 | — | |
| 行距 | 低精度數字 | 1.15 | |
| 半粗體 | 真否 | True | |
| 斜體 | 真否 | True | |
| 抗鋸齒 | 真否 | True |
返回
| 結果 | Pixel Image |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 簡單形狀影像
- 所屬包
- 影像處理
繪製三角形
函數Draws a triangle with the specified width and height.
繪製三角形 -> Pixel Image
寬度: 整數
高度: 整數
方向: Triangle Direction
填充顏色: 可選顏色
描邊顏色: 可選顏色
描邊寬度: 低精度數字
背景顏色: 可選顏色
內邊距: 低精度數字
旋轉角度(度): 低精度數字
抗鋸齒: 真否PixelImage DrawTriangleShape(
int width,
int height,
SimpleShapeImages.TriangleDirection direction = TriangleDirection.Up,
ColorElement? fillColor,
ColorElement? strokeColor,
float strokeWidth = 0f,
ColorElement? backgroundColor,
float padding = 0f,
float rotationDegrees = 0f,
bool antialias = true)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 寬度 | 整數 | — | The width of the drawing area. |
| 高度 | 整數 | — | The height of the drawing area. |
| 方向 | Triangle Direction | 向上 | |
| 填充顏色 | 可選顏色 | — | |
| 描邊顏色 | 可選顏色 | — | |
| 描邊寬度 | 低精度數字 | 0 | |
| 背景顏色 | 可選顏色 | — | |
| 內邊距 | 低精度數字 | 0 | |
| 旋轉角度(度) | 低精度數字 | 0 | |
| 抗鋸齒 | 真否 | True |
返回
| 結果 | Pixel Image |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 簡單形狀影像
- 所屬包
- 影像處理