On this page
Exporting images for TXT and HTML templates returns absolute paths, e.g., file:/C:/Users/username/Desktop/output/out_files/_18_5_1_133803de_1519700709957_140433_4668.jpg. There are five functions for handling paths of exported images as follows.
$image.createSilentImage(image)
Create an image without returning a path.
Name | Type | Description | |
---|---|---|---|
Parameter(s) | image | com.nomagic.magicreport.Image | An image object for the element icon. |
Return | - | com.nomagic.magicreport.Image | An exported image. |
$image.createImageWithRelativePath(image)
Create an image and return a relative path.
Name | Type | Description | |
---|---|---|---|
Parameter(s) | image | com.nomagic.magicreport.Image | An image object for the element icon. |
Return | - | com.nomagic.magicreport.Image | An exported image. |
- | java.lang.String | A relative path of the exported image. |
$image.getRelativePath(image)
Return a relative path only.
Name | Type | Description | |
---|---|---|---|
Parameter(s) | image | com.nomagic.magicreport.Image | An image object for the element icon. |
Return | - | java.lang.String | A relative path of the exported image. |
$image.createImageWithAbsolutePath(image)
Create an image and return an absolute path.
Name | Type | Description | |
---|---|---|---|
Parameter(s) | image | com.nomagic.magicreport.Image | An image object for the element icon. |
Return | - | com.nomagic.magicreport.Image | An exported image. |
- | java.lang.String | An absolute path of the exported image. |
$image.getAbsolutePath(image)
Return an absolute path only.
Name | Type | Description | |
---|---|---|---|
Parameter(s) | image | com.nomagic.magicreport.Image | An image object for the element icon. |
Return | - | java.lang.String | An absolute path of the exported image. |