If you would like to upgrade to a newer long-term support version of Studio Pro, see Moving from Mendix Studio Pro 8 to 9.
Image Collection
Introduction
If you want to use your own static images within an application, for example for branding or to give your buttons a unique feel, you will need to store them in your app. To do this, you create an image collection where you can store your images.
For information on how to use images in your app, see Images.
Remember that, if you want to use the same set of custom images in several apps, you can export and import complete image collections, with their images, using Import and Export Objects.
Adding an Image Collection
To add an image collection, do the following.
-
Right-click a module in the Project Explorer.
-
Select Add other > Image collection:
-
Give your image collection a name.
Image Collection Actions
You can perform the following actions within image collections using the icons at the top of the image collection tab.
Some of the actions can be applied to multiple images. You can select all images with Ctrl + A, or multiple images by combining your click with Ctrl or Shift
Add
The Add button allows you to add a new image from a file to your image collection. The image will be given the name of the image file you add. If the name already exists, a suffix will be added to make the name unique.
The following image formats are supported: png, jpeg, gif, bmp, and svg.
You can also add an image to your collection using Ctrl + N.
Rename
The Rename button allows you to change the name of the selected image. As well as being the name you use within your app to refer to this image, this is also the name that Export to file… will give to your image if you save it as a file. If you change the name here, the name will also be changed in references to this image elsewhere in your app.
You can also rename an image using F2.
Delete
The Delete button removes the selected image(s) from the image collection. You will be warned if the image or images are used elsewhere in the app.
Find Usages
The Find usages button displays, in the Find Results dock, all the places where this image is used in your app.
Move to Other Image Collection
The Move to other image collection button allows you to move the selected image(s) to another image collection. When you move the image(s), all references elsewhere in your app will also be updated.
Export to File
The Export to file… button saves the selected image(s) as image files. You can select the folder where the images will be saved and they will be given the same name as they have in the image collection. If a file with the same name already exists, you will be warned.