图像合成器
3 个节点
本页内容 3
合成图像
函数Draws the placed pictures onto one canvas, under the title if there is one.
签名
合成图像 -> Pixel Image
放置: Placement 数组
配置: Image Composition Formatting Parameters
绝对定位: 真否PixelImage ComposeImages(
ImageComposer.BlockLocationSpecification[] placements,
ImageComposer.ImageCompositionFormattingParameters configurations,
bool absolute = true)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 放置 | Placement 数组 | — | The pictures and where each goes. |
| 配置 | Image Composition Formatting Parameters | — | The composition's look; the defaults when absent. |
| 绝对定位 | 真否 | True | Whether positions count from the canvas's corner (true) or the canvas grows to fit wherever they are, negative positions included (false). |
返回
| 结果 | Pixel Image |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 图像合成器
- 所属包
- 图像处理
配置合成
函数The look of a composition: its title, font, margin, title size, colours and border width.
签名
配置合成 -> Image Composition Formatting Parameters
标题: 文本
字体族: 文本
边距: 整数
标题字号: 数字
文本颜色: 可选颜色
边框颜色: 可选颜色
背景颜色: 可选颜色
标题颜色: 可选颜色
边框宽度: 整数ImageComposer.ImageCompositionFormattingParameters ConfigureComposition(
string title,
string fontFamily = "Calibri",
int margin = 20,
double captionFontSize = 52,
ColorElement? textColor,
ColorElement? borderColor,
ColorElement? backgroundColor,
ColorElement? titleColor,
int borderWidth = 2)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 标题 | 文本 | — | |
| 字体族 | 文本 | Calibri | |
| 边距 | 整数 | 20 | |
| 标题字号 | 数字 | 52 | |
| 文本颜色 | 可选颜色 | — | |
| 边框颜色 | 可选颜色 | — | |
| 背景颜色 | 可选颜色 | — | |
| 标题颜色 | 可选颜色 | — | |
| 边框宽度 | 整数 | 2 |
返回
| 结果 | Image Composition Formatting Parameters |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 图像合成器
- 所属包
- 图像处理
放置图像
函数Designates the placement of image.
签名
放置图像 -> Placement
图像: Pixel Image
位置: Vector2
边框宽度: 整数
缩放比例: 数字ImageComposer.BlockLocationSpecification PlaceImage(
PixelImage image,
Vector2 position,
int borderWidth = 1,
double scaleRatio = 1)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 图像 | Pixel Image | — | The image to place. |
| 位置 | Vector2 | — | Position of the image. Nagative and positive values will automatically expand the final canvas. |
| 边框宽度 | 整数 | 1 | Optional border for the image; Use 0 to disable border. |
| 缩放比例 | 数字 | 1 | Whether we should scale the image. |
返回
| 结果 | Placement |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 图像合成器
- 所属包
- 图像处理