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