TGML Image Element: <Image>

Image represents a raster image. Image supports JPEG and PNG images.

The image data is stored as a Base64 encoded string in the CDATA section of the Image element.

Copy
<Image Left="100" Top="100" Width="100" Height="100" ...>
    <![CDATA [iVBORwOKGgoAAAANSUh...SUVORK5CYII=]]>
</Image>

The image data is accessible through the Content attribute which means that it can be bound and dynamically updated in View mode.

Attribute Type Description

Content

String

The image data (Base64 encoded).
Inheritable: No
Animatable: Yes

Height

Double

The height of the image.
Inheritable: No
Animatable: Yes

Left

Double

The x coordinate of the upper left corner of the image.
Default: "0"
Inheritable: No
Animatable: Yes

Opacity

Double

A value between "0.0" (transparent) and "1.0" (opaque)
Default: "1.0"
Inheritable: No
Animatable: Yes

Top

Double

The y coordinate of the upper left corner of the image.
Default: "0"
Inheritable: No
Animatable: Yes

Visibility Visibility

Specifies if the element is visible or not.
Default: "Visible"
Inheritable: No
Animatable: Yes

Width

Double

The width of the image.
Inheritable: No
Animatable: Yes