The XdevImage is a container that is used to represent the images. The images must be available in the resources itself and are only linked to the XdevImage container. It is possible to specify a URL as an image source. All image formats that can be displayed in the browser are supported.
Assign image
this.image.setSource(new ApplicationResource(this.getClass(), "WebContent/WEB-INF/resources/images/logo.png")); |
Return image / URL
Resource source = this.image.getSource(); |