From Adelia Studio 13 PTF09 onwards, Adelia runtime natively supports SVG format, with certain limitations. An SVG format will only be rendered natively (extended taking into account the target size) if it is displayed in a browser in Adelia Cloud mode.
Visual Adelia Layout Manager
- An SVG image may be directly assigned to an IMAGE graphic object (or any other object displaying an image), but in this case the image is converted into Adelia internal format (DIB) while maintaining the dimensions indicated in the SVG.
- You need to plot the image as an Adelia resource in order to keep the vector data.
Adelia Windows
- The SVG files are converted into PNG format when loading, according to the dimensions indicated in the file. This means that the display extension is not necessarily optimal as the image is processed as a normal image.
Adelia Cloud
- The IMAGE components will display an SVG in native mode (vector extension, taking the component dimensions into account) if the image is either plotted as an Adelia resource, loaded directly via one of the image loading methods or assigned directly via an IMAGE variable containing an SVG source.
All platforms
- The SVG format is supported in read-only mode by standard graphic object methods and by the VaToolBxLoadBitmap function. It is not supported in write mode.
- The VaToolBxLoadBitmap function and query of a graphic object IMAGE property return an image in DIB format, whatever the platform, so a converted image taking into account the resolution indicated in the SVG source code. It is not recommended to use these functions to load an image for display (loss of vector data).