Documentation

mlreportgen.dom.ImageMap class

Package:mlreportgen.dom

Map of hyperlink areas in image

Description

Map of image areas, which are areas within an image where a user can click to open content in an HTML browser.

Construction

map= ImageMap()creates an empty image map. Use theImageMap.appendmethod to add image areas to the map.

Output Arguments

expand all

map— Map of hyperlink areas in imagemlreportgen.dom.ImageMapobject

Map of hyperlink areas in image, specified as anmlreportgen.dom.ImageMapobject.

Properties

expand all

IdID for document elementstring

A session-unique ID is generated as part of document element creation. You can specify an ID to replace the generated ID.

TagTag for document elementstring

Tag for document element, specified as a string.

A session-unique ID is generated as part of document element creation. The generated tag has the formCLASS:ID, whereCLASSis the class of the element andIDis the value of theIdproperty of the object. You can specify a tag to replace the generated tag.

For example, to make it easier to identify where an issue occurred during document generation, you can specify your own tag value.

Methods

Method

Purpose

append

Append an image area to this image map.

clone

UseImageMap.clonein a similar way you how you useParagraph.clone.

Clone this image map.

Examples

expand all

Append an Image Area to an Image Map

importmlreportgen.dom.*d = Document('imageArea','html');x = 0:π/ 100:2 *π;y = sin (x);情节(x, y);annotation('textbox', [0.2,0.4,0.1,0.1],...'String','Help on plot function');saveas(gcf,'plot_img.png');plot1 = Image('plot_img.png');append(d,plot1); area1 = ImageArea(...['//www.tianjin-qmedu.com/help/matlab/ref/'...'plot.html?searchHighlight=plot'],...'plot function help', 240,450,463,492); map = ImageMap(); plot1.Map = map; append(map,area1); close(d); rptview(d.OutputPath);

Related Examples

Was this topic helpful?