Picture

A Picture can be set by naming a path in the filesystem or referencing from the pictures catalog.

When adding pictures to the catalog, only path is available to use.

It is recommended to use width and height to adjust the size of pictures rather than scale, as results are a little more predictable. Read more: Picture

Examples

"cells": [
    {
        "pos": [0,0],
        "picture": {
            "ref": "logo",
            "width": 227,
            "height": 60,
            "position": "move"
        }
    }
],
"pictures": {
    "logo": {"path": "desktop/examples/picture-logo/fx-reports.png"}
}

Implementations

Cell

Properties

name type description
ref string a ref name referring to a picture defined in the pictures catalog.
path string system path, shortcuts are supported (e.g. 'desktop/logo.jpeg') or as field reference (e.g. 'FxReports::a_container_[2]')
width integer Width in pixels. Can be -1 or non-defined for auto.
height integer Height in pixels. Can be -1 or non-defined for auto.
scale number Not recommended to use.
Aspect ratio will be scaled unevenly.

Scale in percent. You can either use scale or width and height. Default ist 1.0

exclusiveMinimum:0
x integer Relative offset from left in pixels
y integer Relative offset from top in pixels
pos string Determines the future scaling and positioning behaviour of the picture.

"resize" – move and size with cells
"move" – move but don't size with cells
"fix" – don't move or size with cells

possible values:
resize
move
fix