Image Composer
3 nodes
On this page 3
Compose Images
FunctionDraws the placed pictures onto one canvas, under the title if there is one.
Signature
ComposeImages -> Pixel Image
placements: Placement Array
configurations: Image Composition Formatting Parameters
absolute: TruthPixelImage ComposeImages(
ImageComposer.BlockLocationSpecification[] placements,
ImageComposer.ImageCompositionFormattingParameters configurations,
bool absolute = true)Parameters
| name | type | default | description |
|---|---|---|---|
| placements | Placement Array | — | The pictures and where each goes. |
| configurations | Image Composition Formatting Parameters | — | The composition's look; the defaults when absent. |
| absolute | Truth | True | Whether positions count from the canvas's corner (true) or the canvas grows to fit wherever they are, negative positions included (false). |
Returns
| result | Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Image Composer
- Package
- Image Processing
Configure Composition
FunctionThe look of a composition: its title, font, margin, title size, colours and border width.
Signature
ConfigureComposition -> Image Composition Formatting Parameters
title: Text
fontFamily: Text
margin: Integer
captionFontSize: Number
textColor: Optional Color
borderColor: Optional Color
backgroundColor: Optional Color
titleColor: Optional Color
borderWidth: IntegerImageComposer.ImageCompositionFormattingParameters ConfigureComposition(
string title,
string fontFamily = "Calibri",
int margin = 20,
double captionFontSize = 52,
ColorElement? textColor,
ColorElement? borderColor,
ColorElement? backgroundColor,
ColorElement? titleColor,
int borderWidth = 2)Parameters
| name | type | default | description |
|---|---|---|---|
| title | Text | — | |
| fontFamily | Text | Calibri | |
| margin | Integer | 20 | |
| captionFontSize | Number | 52 | |
| textColor | Optional Color | — | |
| borderColor | Optional Color | — | |
| backgroundColor | Optional Color | — | |
| titleColor | Optional Color | — | |
| borderWidth | Integer | 2 |
Returns
| result | Image Composition Formatting Parameters |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Image Composer
- Package
- Image Processing
Place Image
FunctionDesignates the placement of image.
Signature
PlaceImage -> Placement
image: Pixel Image
position: Vector2
borderWidth: Integer
scaleRatio: NumberImageComposer.BlockLocationSpecification PlaceImage(
PixelImage image,
Vector2 position,
int borderWidth = 1,
double scaleRatio = 1)Parameters
| name | type | default | description |
|---|---|---|---|
| image | Pixel Image | — | The image to place. |
| position | Vector2 | — | Position of the image. Nagative and positive values will automatically expand the final canvas. |
| borderWidth | Integer | 1 | Optional border for the image; Use 0 to disable border. |
| scaleRatio | Number | 1 | Whether we should scale the image. |
Returns
| result | Placement |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Image Composer
- Package
- Image Processing