元編程參考文件

影像合成器

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
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
影像合成器
所屬包
影像處理