简单形状图像
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 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 简单形状图像
- 所属包
- 图像处理