MagicDraw 18.5 Documentation

Skip to end of metadata
Go to start of metadata

You can include images from an external source in a report. The supported image types are BMP, JPG, WBMP, GIF, and PNG.

$image.include(location)

Include an external image from a local file or URL in a report.

 NameTypeDescription
Parameter(s)locationjava.lang.StringAn image’s location.
The location format
can be either a URL
or a local file.
Return-com.nomagic.magicreport.ImageAn image included
in a report

For example:

$image.include("C:\Users\username\images\logo.gif")
$image.include("http://www.magicdraw.com/images/product_boxes/MD.gif")
  • No labels