元编程参考文档

图像合成器

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.
绝对定位真否TrueWhether 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.
边框宽度整数1Optional border for the image; Use 0 to disable border.
缩放比例数字1Whether we should scale the image.

返回

结果Placement
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
图像合成器
所属包
图像处理