Insert and manage images in displays.
Reference → Modules → Displays → UI → Client Settings | Draw | Images | Layouts | List | Localization | Symbols | Themes | Units Conversion
Display Images provides:
Once imported, images become part of the solution database, eliminating dependency on external files.
Table of Contents maxLevel 2 minLevel 2 indent 10px exclude Steps style none
Format | Extension | Use Case |
---|---|---|
Bitmap | .bmp | Uncompressed images |
GIF | .gif | Simple animations |
Icon | .ico | Application icons |
JPEG | .jpg | Photographs |
SVG | .svg | Scalable vectors |
PNG | .png | Transparent graphics |
TIFF | .tiff | High-quality images |
WDP | .wdp | HD Photo format |
Images are embedded in the project database.
Apply images as brushes:
Mode | Description | Use Case |
---|---|---|
None | Original size | Icons, logos |
Fill | Fill container | Backgrounds |
Uniform | Maintain aspect ratio | Photos |
UniformToFill | Fill and crop | Wallpapers |
Property | Description | Editable |
---|---|---|
Name | Resource identifier | Yes |
Description | Image documentation | Yes |
Folder | Organization path | Yes |
ResourceType | File type | Read-only |
Dimension | Width x Height | Read-only |
Size | File size in bytes | Read-only |
/Backgrounds
/Screens
/Popups
/Icons
/Navigation
/Equipment
/Logos
/Company
/Products
csharp
// Change image source
@Display.MyImage.Source = "NewImageName";
// Toggle between images
if (condition)
@Display.Background.Fill = "Image1";
else
@Display.Background.Fill = "Image2";
csharp
// Use image in color dynamics
@Display.Rectangle1.Fill = "ImageBrush:Logo";
// Conditional image fill
@Display.Shape.Fill = @Tag.State == 1 ?
"ImageBrush:ActiveImage" :
"ImageBrush:InactiveImage";
xml
<Page Background="ImageBrush:PlantLayout">
<!-- Display content -->
</Page>
csharp
// Motor image based on state
string motorImage = @Tag.Motor.Running ?
"Motor_Running" : "Motor_Stopped";
@Display.MotorImage.Source = motorImage;
xml
<Button>
<Image Source="Icon_Home" Width="32" Height="32"/>
</Button>
Image not displaying:
Poor quality:
Memory issues:
Update not reflecting:
Create reusable image sets:
csharp
public class ImageLibrary
{
public static string GetStateImage(int state)
{
return state switch
{
0 => "State_Idle",
1 => "State_Running",
2 => "State_Alarm",
_ => "State_Unknown"
};
}
}
csharp
// Load image from database
byte[] imageData = @Dataset.Query.Images.GetImage(id);
@Display.DynamicImage.LoadFromBytes(imageData);
Page Tree | ||
---|---|---|
|
Used to insert an external image file from your computer into the solution configuration, such as an icon, wallpaper, object, or background image. After the image is imported, you no longer need the original file. Images can be used as color brushes for any drawing object, and they can even be used as "color" or in the ColorFill dynamic attributes.
On this page:
Table of Contents | ||||
---|---|---|---|---|
|
You can import any image file in the Displays / Images. This creates a repository of images for the application that is stored inside the project database file. You do not need the original files anymore. These images can be used to be the Fill of an object, such as rectangles, ellipses, LabelBoxes, paths, page background, or target color in runtime dynamics using colors.
Supported file types include .bmp, .gif, .ico, .jpg, .svg, .png, .tiff, and .wdp.
If you need to update an image with a new version, you can replace it, and it will be updated throughout the application. Be sure to keep the resource name the same.
You can use any image file to fill or "paint" an object when you create displays in Display / Draw.
Go to Displays → Images.
Click Import Images.
Navigate to the folder of the images you want to import.
Select the image files and click Open.
Go to Displays / Draw.
On the Components Panel, click on the Images Component category.
Select the image and click in the Draw area.
Info |
---|
Typically, you may use UNIFORM or FILL for image stretching. The image (using the Appearance menu to the left) can be applied to any graphical shape in the display. |
You apply the images directly in the Draw interface, so it is usually not necessary to visit this table, except for importing new images or managing image resources.
Displays Images Table
Name
Edit the default name.
Description
Enter a description of this image.
Folder
Specify the folder where the resource is
ResourceType
Specify the type of the resource
Dimension
Read-only. Show the dimension of the resource file
Size
Read-only. Show the size of the resource file
In this section: