Divooka Reference

Image Composer

3 nodes

On this page 3

Compose Images

Function

Draws 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: Truth
PixelImage ComposeImages(
    ImageComposer.BlockLocationSpecification[] placements,
    ImageComposer.ImageCompositionFormattingParameters configurations,
    bool absolute = true)

Parameters

nametypedefaultdescription
placementsPlacement Array—The pictures and where each goes.
configurationsImage Composition Formatting Parameters—The composition's look; the defaults when absent.
absoluteTruthTrueWhether positions count from the canvas's corner (true) or the canvas grows to fit wherever they are, negative positions included (false).

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Image Composer
Package
Image Processing

Configure Composition

Function

The 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: Integer
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)

Parameters

nametypedefaultdescription
titleText—
fontFamilyTextCalibri
marginInteger20
captionFontSizeNumber52
textColorOptional Color—
borderColorOptional Color—
backgroundColorOptional Color—
titleColorOptional Color—
borderWidthInteger2

Returns

resultImage 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

Function

Designates the placement of image.

Signature
PlaceImage -> Placement
    image: Pixel Image
    position: Vector2
    borderWidth: Integer
    scaleRatio: Number
ImageComposer.BlockLocationSpecification PlaceImage(
    PixelImage image,
    Vector2 position,
    int borderWidth = 1,
    double scaleRatio = 1)

Parameters

nametypedefaultdescription
imagePixel Image—The image to place.
positionVector2—Position of the image. Nagative and positive values will automatically expand the final canvas.
borderWidthInteger1Optional border for the image; Use 0 to disable border.
scaleRatioNumber1Whether we should scale the image.

Returns

resultPlacement
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Image Composer
Package
Image Processing