Add an image to a screen
Add an Image graphic element to a screen to display an image. Existing Image graphic elements appear in the
Images
folder of the Project Explorer
.To add an image to a screen
- In theToolbox, expand theCommon Controlscategory.
- Double-click or drag the Image graphic element onto the screen. TheSelect Imagedialog box opens.TIP:Tips:
- PressingEnterwhen an Image graphic element is selected opens theSelect Imagedialog box.
- Preview an image before opening theSelect Imagedialog box, by double-clicking the image in theAssets > Imagesfolder of theProject Exploreror right-click the image and selectOpen.
- On theSelect Imagedialog box either:
- Select an existing image and selectOK.
- SelectBrowse, select a new image or multiple images, selectOpento add the image to theSelect Imagedialog box, select the image to add to the screen, and then selectOK.The Image graphic element appears on the screen and is linked to the image in theImagesfolder of theProject Explorer.TIP:Tips:
- Browsing to and selecting multiple images from theSelect Imagedialog box highlights the last selected image.
- Browsing to an image in theSelect Imagedialog box adds the image to theImagesfolder of theProject Explorer.
- Adding an image to theImagesfolder of theProject Explorerdisplays the image in theSelect Imagedialog box.
- SelectingCancelon theSelect Imagedialog box places a 100 pixel by 100 pixel Image graphic element on the screen. The Image graphic element displays a red X to indicate there is no referenced image.
- Add an image from theProject Explorerby expanding theAssets > Imagesfolders and dragging the image to the screen, or right-clicking an image and then selectingAdd to (screen name).
- If the original image is larger than 100 pixels in width or height, the larger dimension value is set to 100 pixels. The smaller dimension is set to a value that maintains the aspect ratio of the original image. If the original image is 100 pixels or smaller, the Image graphic element uses the actual dimensions of the original image.
- Resize image graphic elements with the sizing handles. Each instance of an image is sized independent of any other instance. Multiple images on multiple screens can each have a different image size. Resizing an image by binding the height and width properties is not recommended as it may result in poor performance.
IMPORTANT:
- Changing the aspect ratio of the original image and then re-importing it does not automatically rescale all Image graphic elements linked to that image.
- Too much content on screens can result in the HMI device running out of memory. ThePropertiestab displays the size of the image. Use the predefinedHMI Devicescreen to monitor memory usage. If the HMI device runs out of memory while running an application, the HMI device restarts and provides an error message indicating that an out-of-memory condition occurred.
- If the computer runningView Designerruns out of memory,View Designershuts down and provides a message indicating that an out-of-memory condition occurred.View Designerretains the last saved version of the project.
Provide Feedback